GWT编译失败

时间:2014-05-19 20:22:20

标签: java eclipse gwt compiler-errors

我正在开发一个GWT应用程序,当我即将编译时,我收到了一条消息" GWT编译失败"没有任何堆栈跟踪。

然后我尝试了一些更简单的东西,比如创建示例应用程序并且我已经"创建元素失败了。原因:调用com.google.gwt.user.tools.WebAppCreator失败"。

我做了很多研究并尝试了很多东西(更改文件夹权限,停用防病毒软件,更改了eclipse和gwt版本,检查了Windows事件记录器(一无所获),重新创建工作区,删除ClassPath环境可变...) 。最奇怪的是,在我的个人计算机中一切正常,但是将eclipse文件夹复制到我工作的计算机上我总是遇到同样的问题。

这是来自eclipse的.log。

!ENTRY org.eclipse.jdt.ui 4 10001 2014-05-19 17:07:17.829
!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:2344)
    at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:5204)
    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:70)
    at com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.createGWTProject(WebAppProjectCreator.java:683)
    at com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.create(WebAppProjectCreator.java:292)
    at com.google.gdt.eclipse.suite.wizards.NewWebAppProjectWizard.finishPage(NewWebAppProjectWizard.java:154)
    at org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run(NewElementWizard.java:118)
    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:2344)
    at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:5204)
    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 2014-05-19 17:07:17.829
!MESSAGE Invocation of com.google.gwt.user.tools.WebAppCreator failed. See the error log for more details.

有没有人对如何解决这个问题有任何想法?

1 个答案:

答案 0 :(得分:1)

我从Windows环境变量中删除了ClassPath条目,它就可以了。