Greetings,
I'm having a difficult time getting started with GWT 1.7.1 in Eclipse
3.5 on OSX 10.5.8 (Intel) with all the latest OS updates (as of
2009-09-30). I've never used GWT or Eclipse on OSX before, so it is
difficult for me to determine what I am doing wrong. I will provide
as much information as I can in hope that someone can identify my
problem and/or provide helpful criticism/suggestions.
Thank you,
Jason
I receive an error when I attempt to create a new Web Application
Project within Eclipse using the steps below. Not even being able to
begin a project is a bit discouraging, but I am very determined to
make this work. I will be sure to confirm/post a solution when I
resolve this issue.
1. Open Eclipse (use Finder to launch "/Applications/eclipse/
Eclipse")
2. File -> New -> Web Application Project
3. Specify Project Name and Package Name as "com.example.test01"
4. Specify Location as "Create new project in workspace" (default
directory is "/Users/jrklein/Development/workspace/
com.example.test01", parent "workspace" directory DOES exist in my
Development directory)
5. Specify Google SDKs: CHECK "Use Google Web Toolkit", Select "Use
default SDK (GWT - 1.7.1)". UNCHECK "Use Google App Engine" (even
though it is installed/available).
6. Click "Finish" button (first time), initial error.
Error window titled "New" appears, says "Creation of element failed",
"See error log for more details.". My error log output is provided at
end of message.
7. Click "Finish" button (second time), new error.
Error window titled "New" appears, says "Creation of element failed",
"Reason: Invocation of com.google.gwt.user.tools.WebAppCreator failed.
See the error log for more details." My error log output is at end
of the message.
Additional information about my setup. Please let me know if there is
anything else I should share.
Terminal output from "java -version":
java version "1.5.0_20"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_20-
b02-315)
Java HotSpot(TM) Client VM (build 1.5.0_20-141, mixed mode,
sharing)
I have installed the following items.
- Java OSX 10.5 update 5 (JavaForMacOSX10.5Update5.dmg)
- Eclipse 3.5 ("eclipse-jee-galileo-SR1-macosx-cocoa.tar.gz"
extracted into "/Applications/eclipse")
- Google Plugin 1.1.1 for Eclipse 3.5 (via URL
http://dl.google.com/eclipse/plugin/3.5)
- Google App Engine Java SDK 1.2.5 (via URL
http://dl.google.com/eclipse/plugin/3.5)
- Google Web Toolkit SDK 1.7.1 (via URL
http://dl.google.com/eclipse/plugin/3.5)
My problems may be caused by the specific items/versions that I have
installed (or omitted items?).
The Getting Started guides tell me I need the Java SDK but I do not
know how to confirm if the Java update I installed includes the SDK.
I initially downloaded "java_ee_sdk-5_07-mac-nojdk-ml.zip", but did
not know where to copy the files in OSX. More reading led me to
substitute the Apple "Java OSX 10.5 update 5" with the understanding
that it included the SDK minus sample apps, so I did not use the ZIP
file that I originally downloaded from Sun. I also saw the Apple
"Java OS 10.5 update 6 preview", but was afraid pre-release software
could potentially compound my problems.
The Getting Started guides also tell me that I need Apache ANT (ie:
apache-ant-1.7.1-bin.tar.bz2), though it appears that ANT is bundled
with Eclipse 3.5. Perhaps this is only a Windows requirement? The
ANT binary (/Applications/eclipse/plugins/
org.apache.ant_1.7.1.v20090120-1145/bin/ant) was not set to
executable, though changing it to executable didn't help. I don't
think I'm even making it far enough for this to matter.
OSX "Java Preferences" application lists "J2SE 5.0 32-bit" as the
first item below both "Java Applet Plugin" and "Java Applications".
I'm not finding anything related to my particular errors by searching
online or reviewing obvious resources such as these pages:
http://code.google.com/eclipse/docs/install-eclipse-3.5.html
http://code.google.com/eclipse/docs/faq.html
http://code.google.com/webtoolkit/gettingstarted.html
http://code.google.com/webtoolkit/doc/1.6/FAQ_Troubleshooting.html
Entire output of each error message found in the Eclipse Error Log:
===== MESSAGE: INTERNAL ERROR =====
java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:421)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:944)
at org.eclipse.jdt.internal.ui.wizards.NewElementWizard.performFinish
(NewElementWizard.java:132)
at
com.google.gdt.eclipse.suite.wizards.NewWebAppProjectWizard.performFinish
(NewWebAppProjectWizard.java:124)
at org.eclipse.jface.wizard.WizardDialog.finishPressed
(WizardDialog.java:752)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed
(WizardDialog.java:373)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent
(TypedListener.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3543)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1250)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1273)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1079)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
3441)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3100)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ui.internal.actions.NewWizardShortcutAction.run
(NewWizardShortcutAction.java:135)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2
(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent
(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3543)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1250)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1273)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1079)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
3441)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3100)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault
(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:
149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start
(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run
(EclipseAppHandle.java:194)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication
(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Caused by: java.lang.NoClassDefFoundError
at
org.eclipse.jdt.internal.compiler.ast.TypeReference.baseTypeReference
(TypeReference.java:39)
at org.eclipse.jdt.internal.compiler.parser.Parser.getTypeReference
(Parser.java:8584)
at
org.eclipse.jdt.internal.compiler.parser.Parser.consumeMethodHeaderName
(Parser.java:4444)
at org.eclipse.jdt.internal.compiler.parser.Parser.consumeRule
(Parser.java:5375)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:
9339)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:
9571)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:
9528)
at org.eclipse.jdt.internal.compiler.parser.Parser.dietParse
(Parser.java:8126)
at
org.eclipse.jdt.internal.core.util.CodeSnippetParsingUtil.parseCompilationUnit
(CodeSnippetParsingUtil.java:109)
at
org.eclipse.jdt.internal.formatter.DefaultCodeFormatter.formatCompilationUnit
(DefaultCodeFormatter.java:322)
at org.eclipse.jdt.internal.formatter.DefaultCodeFormatter.format
(DefaultCodeFormatter.java:205)
at org.eclipse.jdt.internal.formatter.DefaultCodeFormatter.format
(DefaultCodeFormatter.java:188)
at org.eclipse.jdt.internal.corext.util.CodeFormatterUtil.format2
(CodeFormatterUtil.java:227)
at org.eclipse.jdt.internal.corext.util.CodeFormatterUtil.format2
(CodeFormatterUtil.java:254)
at
com.google.gdt.eclipse.core.resources.ProjectResources.reformatJavaSourceAsString
(ProjectResources.java:155)
at
com.google.gdt.eclipse.core.resources.ProjectResources.reformatJavaSource
(ProjectResources.java:139)
at
com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.reformatJavaFiles
(WebAppProjectCreator.java:183)
at
com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.createGWTProject
(WebAppProjectCreator.java:447)
at com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.create
(WebAppProjectCreator.java:273)
at
com.google.gdt.eclipse.suite.wizards.NewWebAppProjectWizard.finishPage
(NewWebAppProjectWizard.java:219)
at org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run
(NewElementWizard.java:116)
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:
1800)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4694)
at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run
(WorkbenchRunnableAdapter.java:106)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run
(ModalContext.java:121)
Root exception:
java.lang.NoClassDefFoundError
at
org.eclipse.jdt.internal.compiler.ast.TypeReference.baseTypeReference
(TypeReference.java:39)
at org.eclipse.jdt.internal.compiler.parser.Parser.getTypeReference
(Parser.java:8584)
at
org.eclipse.jdt.internal.compiler.parser.Parser.consumeMethodHeaderName
(Parser.java:4444)
at org.eclipse.jdt.internal.compiler.parser.Parser.consumeRule
(Parser.java:5375)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:
9339)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:
9571)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:
9528)
at org.eclipse.jdt.internal.compiler.parser.Parser.dietParse
(Parser.java:8126)
at
org.eclipse.jdt.internal.core.util.CodeSnippetParsingUtil.parseCompilationUnit
(CodeSnippetParsingUtil.java:109)
at
org.eclipse.jdt.internal.formatter.DefaultCodeFormatter.formatCompilationUnit
(DefaultCodeFormatter.java:322)
at org.eclipse.jdt.internal.formatter.DefaultCodeFormatter.format
(DefaultCodeFormatter.java:205)
at org.eclipse.jdt.internal.formatter.DefaultCodeFormatter.format
(DefaultCodeFormatter.java:188)
at org.eclipse.jdt.internal.corext.util.CodeFormatterUtil.format2
(CodeFormatterUtil.java:227)
at org.eclipse.jdt.internal.corext.util.CodeFormatterUtil.format2
(CodeFormatterUtil.java:254)
at
com.google.gdt.eclipse.core.resources.ProjectResources.reformatJavaSourceAsString
(ProjectResources.java:155)
at
com.google.gdt.eclipse.core.resources.ProjectResources.reformatJavaSource
(ProjectResources.java:139)
at
com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.reformatJavaFiles
(WebAppProjectCreator.java:183)
at
com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.createGWTProject
(WebAppProjectCreator.java:447)
at com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.create
(WebAppProjectCreator.java:273)
at
com.google.gdt.eclipse.suite.wizards.NewWebAppProjectWizard.finishPage
(NewWebAppProjectWizard.java:219)
at org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run
(NewElementWizard.java:116)
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:
1800)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4694)
at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run
(WorkbenchRunnableAdapter.java:106)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run
(ModalContext.java:121)
===== EOF =====
===== MESSAGE: INTERNAL ERROR =====
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:
1800)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4694)
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:443)
at com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.create
(WebAppProjectCreator.java:273)
at
com.google.gdt.eclipse.suite.wizards.NewWebAppProjectWizard.finishPage
(NewWebAppProjectWizard.java:219)
at org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run
(NewElementWizard.java:116)
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:
1800)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4694)
at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run
(WorkbenchRunnableAdapter.java:106)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run
(ModalContext.java:121)
===== EOF =====
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---