0
我正在开发一个GWT应用程序,当我正要编译时,没有任何堆栈跟踪,我收到一条消息“GWT编译失败”。GWT编译失败
然后,我尝试了一些更简单的方法,例如创建示例应用程序,并且“创建元素失败。原因:调用com.google.gwt.user.tools.WebAppCreator失败”。我试了很多研究,并尝试了很多东西(更改文件夹权限,停用防病毒软件,更改eclipse和gwt版本,检查窗口事件记录器(什么也没找到),重新创建工作区,删除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.
有没有人有任何想法如何解决这个问题?
检查项目的JDK版本集。 – Braj
请删除所有生成的存根并重新编译项目后再次尝试。 – Braj
我试过jdk1.6.0_45,jdk1.7.0_51,jdk1.7.0_55,jdk1.8.0_05,但都没有工作。问题肯定更深。特别是因为jdk1.8.0_05和jdk1.7.0_51在我的个人电脑上工作。 另一个奇怪的事情是,如果我通过cmd执行它的工作。 – Gigi