Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Libgdx setup UI gives 2 unexpected errors in new GWT project

I have run the setup ui, however, I get two different errors in the -html project than what is described in the tutorial: libgdx tutorial

The tutorial error stated is as follows (which is an error I do not see):

To fix the error of the HTML5/GWT project, go to the "Problems" view, right click the error message "The GWT SDK JAR gwt-servlet.jar is missing in the WEB-INF/lib directory" and select "Quick Fix". Click "Finish".

The errors I have are:

The project was not built since its build path is incomplete. Cannot find the class file for com.google.gwt.core.client.EntryPoint. Fix the build path then try building this project ...
The type com.google.gwt.core.client.EntryPoint cannot be resolved. It is indirectly referenced from required .class files

Is there anyway i can fix this? I just updated my eclipse, I also downloaded Version 18 ADT, revision 19 for Android SDK Tools, and revision 11 for Android SDK Platform-tools.

like image 475
BigBug Avatar asked Jun 10 '12 18:06

BigBug


2 Answers

I had the same problem a couple of weeks ago and got around it by installing the GWT SDK.

like image 198
Rod Hyde Avatar answered Nov 09 '22 08:11

Rod Hyde


I know that the post is old, but while the answer of @Rod was close to resolve my problem, it didn't fully. After installing the plugin in his answer I got 3 error messages instead of two: the same previous ones and a new one.

Looking inside the class that was giving the problem made Eclipse to point straight to the problem: the compiler compliance required to be 1.5 or greater but Eclipse had by default 1.4. I changed it through Window > Preferences > Java > Compiler > Compiler compliance level, where I put the correct one, 1.7, and everything compiled cleanly.

PS: Thanks @Rod

like image 1
Igor Rodriguez Avatar answered Nov 09 '22 10:11

Igor Rodriguez