How to configure IntelliJ 9.0 with GWT? - gwt

I'm trying to setup my GWT library. I found this old video that shows there should be a section title "Google Web Kit" under Settings->IDE Settings.
Sadly, I can't find anywhere in the settings "Google Web Kit" or GWT, except under Inspections.
How do I point IntelliJ to my GWT installation?
BTW, I'm using IntelliJ 9.0.3 Ultimate

File -> Project Structure -> Modules
You should see GWT under you main module name (expand it to see). If GWT is not there add it (by pressing +)
Fill in the Path to GWT installation directory in the right pane (when GWT selected).

I had the same problem. All the IntelliJ help text etc assumes that you have already installed the GWT plugin (Settings | Plugins). It's not there "out of the box" as some of the pages suggest. Until you do that, GWT won't appear in any of the menus or drop-downs.

Related

GWT module not detected by IntelliJ IDEA

I'm trying to enable GWT debugging in IntelliJ 14 Ultimate for an old project.
I have enabled gwt support in IntelliJ, downloaded the GWT version that is used by the project (2.2.0) and created a facet that targets that path:
I set it to target the web facet. I then got a warning about how the gwt compiler output and gwt-user.jar were not part of the artifact so I added them to it:
As I created the facet I added to the main app module. Finally I created a run/debug configuration where I specified the app module and enabled "User Super Dev Mode" but the "GWT Modules to load" field is disabled.
I built/compiled the project and am not getting any errors however I still can't see any GWT modules in the project Facets or Module sections.
This JetBrains article seems to imply that I should add framework support for GWT however I do not see it as an option when i right click the project>Add Framework Support..
Thank you
SuperDevMode was added in GWT 2.5; with 2.2 you're forced to use the legacy DevMode, with browser plugins, which means Internet Explorer or an old Firefox.
Unlike support for other frameworks, I cannot see GWT when I right click project root in Project tab and select "Add Framework support".
However, It still works when I select
Project Structure → Facets → Add → GWT
After a few hours of trying a bunch of different things (updated IDE, change JDK, recreate project, etc) the "culprit" turned out to be my VCS: I copied a colleague's local version and it IntelliJ was able to recognize the GWT module.
I was surprised since I had run multiple pulls (well 'updates' to be more exact since it is Perforce we're talking about) yesterday so I tried a force pull and voila... the modules are now showing:
Thanks for your replies Vojtech and Thomas!
I just had to move the gwt XML, for ex to the folder where client and server folders are. And Intellij recognised it.

playn-showcase-html is not a GWT project

As per the getting started wiki page, I had Indigo with the Android plugin installed; I installed the Maven Integration for WTP and Google plugins (in that order). I can run the Java version of the showcase fine; when I try to Google > GWT Compile the showcase-html, Eclipse tells me that this is "not a GWT project."
What am I doing wrong? Or is this broken?
Source can be found here for the next seven days: http://www.sendspace.com/file/zc2af3
With all of those plugins installed Eclipse should auto-detect the GWT "nature" of the yourgame-html subproject. It works fine for me and at least a few other people.
In any case, you can simply right click on that project, select "Google -> Web Toolkit Settings..." and click "Use Google Web Toolkit" on the dialog that pops up.
Right click on the project "Run As -> Run Configurations". We should at-least create one configuration for web application. Click on New Configuration and eclipse will automatically fill the information(ie.playn-showcase-html & the class information ). Go ahead and click on Run and you should be able to get you server to run. Hope this helps.

Compile a GWT project with Eclipse

I'm trying to compile the StackWatcher example, but after selecting "GWT Compile project.." an dialog is opened, but it is said:
StockWatcher is not a GWT project.
The "Compile" button is also enable.
I clicked on Project/Browser.. but it shows an empty window.
Any idea?
Javi
Right-click on your project, Google > Web Toolkit Settings... > check Use GWT.
Same for AppEngine, if you're using it.
If you have the Google plugin installed correctly, right click on your project in the package explorer. There should be a Google Web Toolkit menu entry which allows you to convert your project into a GWT one.
Once the project has been converted you should be able to compile and debug your project as normal.
In the project properties, you probably didn't enable the Google Web Toolkit feature.

What plug-in do I need to create a web application in Net Beans

I just installed NetBeans on my local system. I want to create a Web application but when I click on File->New Project-> The dialogue box that pops up does not give a Web option (I know one exists because I've seen it in text books). Instead I see Java, Maven, NetBeans Modules as my options. Is there a plug in that I need so that the Web option appears?
Thank you,
Elliott
It seems that you didn't download the correct download bundle.
The NetBeans download page shows an overview of all available bundles. From your description it seems that you have the JavaSE package. But you will need the JavaEE package.
As stated on the same page you can add modules:
You can add or remove packs later
using the IDE's Plugin Manager (Tools
| Plugins).

Path to the GWT Installation Directory

I have installed WindowBuilder and I'm trying to create a GWT Java Project in Eclipse Helios. In the "GWT Settings" window, I am instructed to click the "Configure GWT Location" link and point to the path of the GWT installation directory, but I can't seem to find it even though I know WindowBuilder was installed. According to what I've seen online, it should be in the 'plugins' directory in the 'eclipse' folder where I pointed the WindowBuilder download using Eclipse's "Available Software Sites" function. It's looking for a gwt-user.jar file, but I can't locate such a file even while using Windows Explorer's search function.
What am I doing wrong?
This 2 different things GWT SDK and WindowBuilder both can be installed through Eclipse Update
but WindowBuilder will not work without the GWT SDK.
the simplest way is to use Google Plugin for Eclipse - http://dl.google.com/eclipse/plugin/3.7 (Eclipse Indigo) select all (or leave out the AppEngine in case you do not need it)
after it installed and eclipse Restarted you are done.
the "Configure GWT Location" refer to older versions. Now it is not needed.
What you did "works by a miracle" do not go with it I do not know when it will backfire on you with unpredictable behavior.
Download GWT SDK manually from http://www.gwtproject.org/download.html, .. unzip it ... you'll fine "gwt-user.jar" there
In Eclipse, open Window | Preferences | Google | Web Toolkit .. click "Add" then browse to this unzipped folder.
You do not need GWT turned on in order to create a New Web Application Project. If you do not want to use GWT just uncheck the "Use Google Web Toolkit" checkbox on that same dialog and it should work.