2014-05-19 258 views
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. 

有沒有人有任何想法如何解決這個問題?

+0

檢查項目的JDK版本集。 – Braj

+0

請刪除所有生成的存根並重新編譯項目後再次嘗試。 – Braj

+0

我試過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

回答

1

我從Windows環境變量中刪除了ClassPath條目,它的確有竅門。