GWT / Eclipse:ClassNotFoundException com / google / gwt / dev / Compiler [英] GWT/ Eclipse: ClassNotFoundException com/google/gwt/dev/Compiler
问题描述
java.lang.NoClassDefFoundError:com / google / gwt / dev / Compiler
导致:java.lang.ClassNotFoundException:com.google.gwt.dev.Compiler
在java.net.URLClassLoader $ 1.run(URLClassLoader.java:202)
在java.security.AccessController.doPrivileged(本机方法)
在java.net.URLClassLoader.findClass(URLClassLoader.java:190)
在java.lang.ClassLoader.loadClass(ClassLoader。 java.lang.ClassLoader.loadClass(ClassLoader.java:248)
线程main
此外,我无法在Eclipse中创建一个新的GWT项目。在新的Web应用程序项目对话框中,可以选择使用GWT和/或Google App Engine。当检查使用GWT时,出现一个错误对话框,提示:
创建元素失败原因:调用com.google.gwt.user.tools.WebAppCreator失败,有关更多详细信息,请参阅错误日志。
在日志文件(< workspace> /。metadata / .log
)中,我可以看到消息:
!ENTRY org.eclipse.jdt.ui 4 10001 2010-11-02 08:34:50.085
! MESSAGE内部错误
!STACK 1
Java模型异常:核心异常[代码0] com.google.gwt.user.tools.WebAppCreator的调用失败。有关详细信息,请参阅错误日志。
在org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:50)
在org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:728)
在org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
在org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4777)
在org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:106)
在org.eclipse.jface.operation.ModalContext $ ModalContextThread.run(ModalContext.java:121)
导致:org.eclipse.core.runtime.CoreException:调用com.google.gwt.user.tools.WebAppCreator失败。有关详细信息,请参阅错误日志。
com.google.gwt.eclipse.core.runtime.tools.WebAppProjectCreatorRunner.createProject(WebAppProjectCreatorRunner.java:53)
com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.createGWTProject( WebAppProjectCreator.java:532)
在com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.create(WebAppProjectCreator.java:294)
在com.google.gdt.eclipse.suite.wizards。 NewWebAppProjectWizard.finishPage(NewWebAppProjectWizard.java:147)
在org.eclipse.jdt.internal.ui.wizards.NewElementWizard $ 2.run(NewElementWizard.java:117)
在org.eclipse.jdt.internal .core.BatchOperation.executeOperation(BatchOperation.java:39)
在org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:728)
在org.eclipse.core.internal .resources.Workspace.run(Workspace.java:1975)
在org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4777)
在org.eclipse.jdt.internal.ui .actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:106)
在org.eclipse.jface.operation.ModalContext $ ModalContextThread.run(ModalContext.java:121)
!SUBENTRY 1 com.google.gwt.eclipse.core 4 0 2010-11-02 08:34:50.085
!MESSAGE com.google.gwt.user.tools.WebAppCreator的调用失败。有关详细信息,请参阅错误日志。
gwt-dev.jar,gwt-user.jar和许多其他google-jars都在类路径...
有谁有一个想法如何解决这个问题?
我还设置了一个新的Eclipse安装,安装了新的GWT插件,并选择了一个新的工作空间目录,但这仍然给我错误...
其他信息:
- Windows XP,
- Eclipse for Java EE 3.6 Helios, li>
- J2EE / Java 1.6.0_22-b04
- Google插件Eclipse 3.6 1.4.0.v201010280102
- Google App Engine Java SDK 1.3.8 1.3.8.v201010161055
- Google Web Toolkit SDK 2.1.0 2.1.0.v201010280102
我有同样的问题无法在Eclipse中创建一个新的GWT项目。
从我的Windows环境变量中删除Classpath变量(显然干扰Eclipse中的设置)解决了我的问题。
i recently updated from GWT 2.0.4 to 2.1.0. Since then I cannot compile my GWT application anymore. When I click on the GWT compile button of the GWT eclipse plugin I get the following error:
java.lang.NoClassDefFoundError: com/google/gwt/dev/Compiler
Caused by: java.lang.ClassNotFoundException: com.google.gwt.dev.Compiler
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Exception in thread "main"
Also I can't create a new GWT project in Eclipse. In the new New Web Application Project Dialog one can choose to use GWT and/or Google App Engine. When check "Use GWT" a error dialog raises up which says: "Creation of element failed. Reason: Invocation of com.google.gwt.user.tools.WebAppCreator failed. See the error log for more details."
In the log file (<workspace>/.metadata/.log
) I can see the message:
!ENTRY org.eclipse.jdt.ui 4 10001 2010-11-02 08:34:50.085
!MESSAGE Internal Error
!STACK 1
Java Model Exception: Core Exception [code 0] Invocation of com.google.gwt.user.tools.WebAppCreator failed. See the error log for more details.
at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:50)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:728)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4777)
at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:106)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: org.eclipse.core.runtime.CoreException: Invocation of com.google.gwt.user.tools.WebAppCreator failed. See the error log for more details.
at com.google.gwt.eclipse.core.runtime.tools.WebAppProjectCreatorRunner.createProject(WebAppProjectCreatorRunner.java:53)
at com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.createGWTProject(WebAppProjectCreator.java:532)
at com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.create(WebAppProjectCreator.java:294)
at com.google.gdt.eclipse.suite.wizards.NewWebAppProjectWizard.finishPage(NewWebAppProjectWizard.java:147)
at org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run(NewElementWizard.java:117)
at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:728)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4777)
at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:106)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
!SUBENTRY 1 com.google.gwt.eclipse.core 4 0 2010-11-02 08:34:50.085
!MESSAGE Invocation of com.google.gwt.user.tools.WebAppCreator failed. See the error log for more details.
gwt-dev.jar, gwt-user.jar and many other google-jars are in the classpath...
Does anyone have an idea how to solve this issue? I also set up a new fresh Eclipse installation, installed the new GWT plugin, and chose a new workspace directory, but this still gives me the errors...
Additional information:
- Windows XP,
- Eclipse for Java EE 3.6 Helios,
- J2EE / Java 1.6.0_22-b04
- Google Plugin for Eclipse 3.6 1.4.0.v201010280102,
- Google App Engine Java SDK 1.3.8 1.3.8.v201010161055
- Google Web Toolkit SDK 2.1.0 2.1.0.v201010280102
I had the same problem not being able to create a new GWT-project in Eclipse. Removing the Classpath variable from my windows environment variables (appearently interfering with the settings in Eclipse) solved the problem for me.
这篇关于GWT / Eclipse:ClassNotFoundException com / google / gwt / dev / Compiler的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!