Friday, September 3, 2010

NoClassDefFoundError with gwt.dev.Compiler

Hello, 

I'm new with GWT, and I'd like to run my first GWT application.
When I build this project >mvn clean install, I received this log error : 


[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building gwt-maven-archetype-project
[INFO] 
[INFO] Id: org.exo.gwt:GWTSample:war:1.0
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 1 source file to D:\exo\workspaces\sebastian.trunk.timeline\GWTSample\target\war\WEB-INF\classes
[INFO] [gwt:compile]
[INFO] using GWT jars from project dependencies : 2.0.3
[INFO] auto discovered modules [org.exoplatform.gwt.gwtSample.Application]
[INFO] establishing classpath list (scope = compile)
[ERROR] java.lang.NoClassDefFoundError: com/google/gwt/dev/Compiler
[ERROR] Caused by: java.lang.ClassNotFoundException: com.google.gwt.dev.Compiler
[ERROR] at java.net.URLClassLoader$1.run(Unknown Source)
[ERROR] at java.security.AccessController.doPrivileged(Native Method)
[ERROR] at java.net.URLClassLoader.findClass(Unknown Source)
[ERROR] at java.lang.ClassLoader.loadClass(Unknown Source)
[ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
[ERROR] at java.lang.ClassLoader.loadClass(Unknown Source)
[ERROR] Could not find the main class: com.google.gwt.dev.Compiler.  Program will exit.
[ERROR] Exception in thread "main" 
[ERROR] 

The following mojo encountered an error while executing:
Group-Id: org.codehaus.mojo
Artifact-Id: gwt-maven-plugin
Version: 1.2
Mojo: compile
brought in via: POM

While building project:
Group-Id: org.exo.gwt
Artifact-Id: GWTSample
Version: 1.0
From file: D:\exo\workspaces\sebastian.trunk.timeline\GWTSample\pom.xml
Reason: Command [[
D:\exo\jdk1.6\jre6\bin\java -Xmx512m -classpath ...
]] failed with status 1

Is there any suggestions please ?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment