I am struggling hard to compile a GWT project. I confirmed that GWT, AppEngine and necessary library are referenced to the project (added in the Java Build Path, also GWT is installed successfully from Marketplace).
Using the setting above, I tried to build using GWT and I have been getting
java.lang.NoClassDefFoundError: com/google/gwt/dev/Compiler
over and over again.
Then tried to set gwt-dev.jar in Windows CLASSPATH, and I could get off from this error but ended up with
[ERROR] Unable to find 'some/package/My_Project.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
I tried to set project classpath to some/package/ but didn't work.
Even I could manage to get over with this error for once, again I got into another error:
java.lang.NoClassDefFoundError: com/google/appengine/tools/enhancer/Enhance.
I screwed up the environment and couldn't get to the last error I was getting, and I was just stuck on the second error.
I have tried removing all Run Configuration, creating new workspace and import projects from scratch and tried everything that I found on Google.
Did you look at this answer: GWT/ Eclipse: ClassNotFoundException com/google/gwt/dev/Compiler
Also, you can try to clean your project and add the jar file via the usual class path configuration within eclipse (right click on your project). You can then add the gwt-dev.jar file from the plugin. Make sure you use the one that was installed in the plugin for eclipse.
[ERROR] Unable to find 'some/package/My_Project.gwt.xml' on your
classpath; could be a typo, or maybe you forgot to include a classpath
entry for source?
Check out the link for more info...Here
Related
I just added lwjgl 3.1 to a project in Intellij IDEA. To verify everything was done correctly I tried to run the guide code in the webpage (https://www.lwjgl.org/guide), but when compiling the following error came out:
"Exception in thread "main" java.lang.NoClassDefFoundError: Could not
initialize class org.lwjgl.system.MemoryAccess"
After a google search I found out that the possible error is in the configuration of the native libraries, which I have added when configuring the library in the project.
When LWJGL was downloaded from the webpage, I got a a zip file with all the jar files of the modules (classes, docs, natives and sources), what I did was to separate them accordingly and then add them as a single library in the global libraries section of the IDE.
Global Libraries
After this, the library appears as a module of the project.
Still, the program won't compile. Is there anything else I should configure?
You claim that this is a compile-time error, however, after looking through the documentation, I have found out that this is a runtime error, where you successfully compile, but the JVM is unable to find the class at runtime. To solve this, I would suggest merging your .jar output and the lwjgl jar using jarsplice to see if that fixes it. If it fixes it, the problem is with intelliJ not correctly adding your libraries to your jar.
I am trying to compile and run the project
https://github.com/jitsi/jitsi-android on Eclipse by Importing.
I have imported the project successfully,Added External Jar files and Fix some of compilation errors.
When I try to run app, It is giving
Conversion to Dalvik format failed with error 1 Error on the console.So that I Clean the project, checked the all the jar files from Order and Export tab and build it again.
but it doesn't work for me.
Finally, I unchecked the all the libraries from Order and Export tab,build and run it again.
But still its giving me same error and my application is getting crashed every time i run it.
Any help will be appreciated , i really want to run this application.
here is my libs folder screenshot:-
I've had the same problem once.
Here is what I found out when I was trying to solve my issue:
The error is caused when there are two Classes/Packages with the same name (For example when LibaryX has Class org.a.b.c.Sample and LibaryY has class org.a.b.c.Sample aswell)
Different approaches which worked for some people (So if you have the error yourself, make sure to test following things out):
A) Two Libaries have the exactly same package/class-> Delete the class in one of the Libaries
B) One Jar is detected twice because it's for example in the project source folder and in the Java Build Path Libaries aswell
C) Updating Proguard often fixes it aswell (Put the new Proguard jars in [Android SDK folder]\tools\proguard\lib)
D) Cleaning the Project also helped many people (you already did that, so that won't be your solution)
When I had this issue myself it was caused because I did not follow the instructions of one of the libaries that I used. After following the libary instructions step by step, everything worked fine again.
Greetings
Felix
I get this error under the problems tab. I downloaded a project off of github then imported it to eclipse and added the libraries to the build path. When I try to run I get the error :
Could not find or load main class blah.blah.blah.StartupClass
I've done a ton of googling and I cant figure it out. Thanks for you help. Here is my project
http://puu.sh/dEMHk/4609006ff1.png also here is my eclipse project in a zip http://puu.sh/dEMLZ/1092da9f36.zip
I just restarted my Eclipse and now when I try to run my project via run configuration it is showing this error:
Referenced classpath provider does not exist: org.eclipse.m2e.launchconfig.classpathProvider
Any ideas what the problem is?
Thanks,
It’s probably because your Run Configuration was created on an old project, and has bad entries in the Classpath section. The solution is to delete the Run Configuration and create a new one.
I read here
i downloaded the example GWT MVP Contacts project from
google gwt mvp tutorial
and imported it in eclipse juno. when eclipse loaded it, i get the following error:
when i try to run this project the console gives me this error message:
Loading modules
com.myproject.example.places.Contacts
[ERROR] Unable to find 'com/myproject/example/places/Contacts.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
[ERROR] shell failed in doStartup method
before i downloaded this example project, i created my own project which i called "Contacts" too, but i deleted it from the workspace and after that i downloaded the gwt mvp Contacts example and imported it into eclipse.
What kind of error is this and how to remove it?
please help.
iam using eclipse juno and gwt 2.5 version
in your build file, under target "gwtc"
you may see the following like
this should be changed to proper values. Go to your src folder, under that you may find xxxx.gwt.xml file enclosed in a package something like com.google.gwt.sample.logexample. say inside this package you find the file LogExample.gwt.xml
your correct arg value should be
hope this helps
If you are using eclipse or similar IDE right click on project => Properties => Java Build Path, under Order and Export ensure all the entries are checked the errors should disappear
please refer to the image below: