playn-showcase-html is not a GWT project - eclipse

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.

Related

Error: Could not find or load main class com.google.gwt.dev.Compiler

What steps will reproduce the problem? and how i can solve this problem
IN Eclipse Indigo, right click on project name --> google --> GWT Compile --> Compile
I got error that says
GWT compilation failed
In Eclipse console window, I got error message that says
Error: Could not find or load main class com.google.gwt.dev.Compiler
I am using windows 7 , eclipse juno 4.2 , and GWT sdk 2.5.1
During Gwt installation i left unchecked all app engine SDK options.
And also configure build path for jar files for projects i have.
but still this problem is coming .
Thanks for answering . well I tried that before but nothing happened. Then I uninstall all all. And go to HELP--->Install new Software---> in text area i used this link Google Update Site for Eclipse 4.2 - http://dl.google.com/eclipse/plugin/4.2 then whenever i checked Google Plugin for eclipse (required) and hit next it shows Cannot complete the install because one or more required items could not be found.
Software being installed: Google Plugin for Eclipse 4.2 3.2.4.v201306061638-rel-r42 (com.google.gdt.eclipse.suite.e42.feature.feature.group 3.2.4.v201306061638-rel-r42)
Missing requirement: Google Plugin for Eclipse 4.2 3.2.4.v201306061638-rel-r42 (com.google.gdt.eclipse.suite.e42.feature.feature.group 3.2.4.v201306061638-rel-r42) requires 'org.objectweb.asm 0.0.0' but it could not be found i didn't understand what and where is the problem coming .
I would double check your GWT install. Right click on a project in eclipse, and select Properties. Then under the Google option, click Web Toolkint. On the panel to the right there should be an option "Use Google Web Toolkit". Make sure that is checked. Also Click "Configure SDKs", and ensure that the selected SDKs are indeed pointing to the correct file location. Finally, Make sure that your entry points are correctly added in the "Entry Point Modules" panel.
I was facing the similar problem. I changed the proxy of my eclipse to manual and put in proxy settings for HTTP, HTTPs and port as 8080. This allowed the eclipse to connect to the network and download the required plugins. Try this out and let us know if it helps.

Eclipse Juno no JSP in Dynamic Web Project (but everything else is fine)

The short question, is when creating dynamic web project (1.6 jdk) I can see all file types to create but there is no option for jsp. To add to that when I check file associations there is no JSP editor to select from.
A slightly longer version is I simply want to edit JSP files, I have Juno EE version installed and it says web tools platform is installed and everything works just fine.
However while everything works, there was no *.jsp in file associations and on adding it there was no JSP editor in the list. This is an out of the box Juno EE.
So I checked installed plugins and it tells me that web tools is installed, there is an icon and a load of plugins. They are all listed under Java EE in the plugin/installation list. I even tried installing just 'java web develop tools' which lists as 'tools for working with jsp' but when I do that I get ""Eclipse Java Web Developer Tools" will be ignored because it is already installed." however I cannot uninstall it because it's part of Java EE eclipse platform. I have no other plugins installed that might have broken this, however it has taken some time to get all the settings good so I'd rather not install it all again.
So I tried to install the full WTP by hand and it said some things were already installed, but it installed others. However, still no JSP editor. Hence why I tried a dynamic web project to see if I could create JSP and it wasn't listed.
So, eclipse base install has absolutely everything (xml, html editor, java editor, all the tools) but just not JSP.
My JDK is fine as dynamic web project is not created unless you have a valid 1.6 or above.
Anyone help?
It seems your missing Eclipse web developer tools and Eclipse java web developer tools.
Help>Install new software>http://download.eclipse.org/releases/juno, select appropriate items under Web,XML,Java EE
Hope this helps
In Eclipse Juno, select File/New/Other, then type in jsp in the wizard field. Select jsp file or jsp tag and there you go. Hope that helps.
Try to install Eclipse with Java EE developer.It should work.
You can go to Eclipse Market place and search for "Java EE Developer tool". On clicking it you should be able to see if your Web developer tool is selected or not. Please select that option and your issue will be resolved.
Check your path. Make sure it is pointing to at least a 1.6 version of Java. Restart Eclipse. That fixed it for me.
If you have installed every thing proper and still it is not showing JSP option while creating new .jsp file then click to the web icon on top right corner of eclipse. If it doesn't work then you need to install updated version of eclipse.
I also faced the same problem; I looked through the "Web,XML,Java EE..." installables available at under Kepler downloads:
and that brought me the New->'JSP File' context menu item.

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.

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.

I don't have "Dynamic Web Project" option in Eclipse new Project wizard

I have download the Eclipse IDE for Java developer, HELIOS. I click 'File -> New -> Project...', but I only have "General, CVS, Java project, Examples". I would like to be able to create "dynamic web project", why do I not have this option?
I searched from internet, and the reason is probably I don't have Eclipse Web Development Tools, but how can I get it?
-----------EDIT-----------
I know by install Eclipse IDE for Java EE developer can solve the problem. But, I am working under Linux Ubuntu, how to get Eclipse Java EE version for Ubuntu Linux machine?
Not all of them are required (I think), but after installing the components listed below I got the "Dynamic Web Project" template added to my Eclipse (Indigo). The list is:
Eclipse Java EE Developer Tools
Eclipse Java Web Developer Tools
Eclipse Web Developer Tools
Eclipse XML Editors and Tools
You can install those packages by clicking on "Help" > "Install New Software", selecting the repository that corresponds to your Eclipse build (i.e http://download.eclipse.org/releases/indigo for Indigo). The packages are grouped under "Web, XML, Java EE and OSGi Enterprise Development".
I think you need the Web Tools Platform package for this. Not very sure though. You can add it to your current eclipse through Help > install new software.
Then add the software repository site location for WTP for your version of eclipse. This is how you can install plugins in eclipse.
"http://download.eclipse.org/releases/kepler"(If you have Eclipse Kepler)
Based on your eclipse choose above link and copy in
help>Install new software
paste in "work with" click add
give any name you want - plugin
In the list select>"Web, XML, Java EE and OSGi Enterprise Development">Eclipse Java EE
Developer Tools. select and install it.
After restart you will have your Dyanmic web project option.
Thank You.
Like me if it worked please
You only need to install
Eclipse Java EE Developer Tools
and you will be able to see "Dynamic web project" wizard.
Download Eclipse IDE for Java EE Developers, everything you need should be included inside. This is the most painless way of obtaining Web Development Tools.
If you want to leave your existing Eclipse IDE, you can go to 'Help -> Install New Software' and find WDT to install them, although I haven't personally tried to go this route, so I can't guarantee everything will work out of the box.
Edit: not sure if it's included in Ubuntu's repository. One other way to do it is to download Linux 32-bit (or 64-bit, depending on your machine) version of Eclipse EE, but you'll have to check if it's the source you have to compile yourself, or an already compiled binary.
Fwiw, I downloaded the standard Java EE version of the Mars version of Eclipse, and ran into the same deal -- didn't see a Web option if I tried File >>> New >>> Project wizard.
The good news: Probably no extra installation needed.
It looks like what I wanted was to select the Other option rather than the Project item (strangely this is what comes up when you hit Ctrl-N, but that also lets us know we're probably on the right track):
After you select "Other", you'll see the "Select a wizard" screen, where you can select "Dynamic Web Project" and profit.
HELP
Install New Software
In Work With input box paste this url: http://download.eclipse.org/releases/{version}/
Replace version with your eclipse's version (eg: LUNA)
Hit enter
Underneath box will have different options, select package of your need.
Maybe Eclipse WTP plugin has been accidently removed. Have you tried re-installing WTP using this location ? If I were you I would have reinstall Eclipse from strach or even better try Spring ToolSuite which integrates with Google Plugin for Eclipse seamlessly (usign Extenstions tab on STS Dashboard)
Just download any eclipse with "EE" letters
I had a similar problem, you may find that going to the top right corner of your page in Eclipse and click "Java EE" instead of "Java" will solve your problem. I had EE installed correctly like you, and this solved the issue for me. Hope I helped :)
Go to Eclipse --> Help
and click--->Install new software
then you can see a window ...There a click add
Then put below url in url box: http://download.eclipse.org/webtools/repository/juno/
i am having juno
if u have any other means put that name .
then click ok.
Make sure to check dynamic web app in "other section" i.e File>New>Other>Web or type in "dynamic web app" in your wizard filter. If dynamic web app is not there then follow following steps:
On Eclipse Menu Select HELP > INSTALL NEW SOFTWARE
In work with test box simply type in your eclipse version, which is oxygen in my case
Once you type in yur version something like this "Oxygen - http://download.eclipse.org/releases/oxygen"will be recommended to you in drop down
If you do not get any recommendation then simply copy " http://download.eclipse.org/releases/your-version" and paste it. Make sure to edit your-version.
After you Enter the address and press enter bunch of new softwares will be listed just ubderneath work with text box.
Scroll, find and Expand WEB, XML, Java EE .... tab
Select only these three options: Eclipse Java EE Developer Tools, Eclipse Java Web Developer Tools,Eclipse Web Developer Tools
Next, next and finish!
The easiest way to handle this is to install the full package installer with all weblogic add ons from the oracle site. This will install eclipse with all the features/plug ins you need.
http://www.oracle.com/technetwork/developer-tools/eclipse/downloads/oepe-network-installer-2371168.html
This helped me find the "Dynamic web project" in Eclipse 2020-12 version. Restart the eclipse and go to file->new->other->web and you will see
project will be available.
This option might be missing because more than one and other than Tomcat runtime is selected. At the marked spot I was shown that I have selected Java JDK runtime. After unselecting it Dynamic Web Module reappeared.