Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » eclipse crash on new project wizard
eclipse crash on new project wizard [message #203696] Fri, 06 April 2007 12:04 Go to next message
Eclipse UserFriend
Originally posted by: not.specified.com

Hi

Just switched from windoze to a shiny new install of Ubuntu and installed
Eclipse and Sun's latest j2ee. Thought it was time to make the switch ;-)
Upon loading eclipse and starting the new project wizard however my shiny
new build was tarnished somewhat by the nasty little crash which I have
picked up from the logs and detailed below.

Anyone know the fix? Seems that it can't find my jvm name???

Many thanks
Iain

---

java.lang.NullPointerException
at
org.eclipse.jdt.internal.ui.wizards.JavaProjectWizardFirstPa ge$JREGroup.getDefaultJVMName(JavaProjectWizardFirstPage.jav a:443)
at
org.eclipse.jdt.internal.ui.wizards.JavaProjectWizardFirstPa ge$JREGroup.getDefaultJVMLabel(JavaProjectWizardFirstPage.ja va:447)
at
org.eclipse.jdt.internal.ui.wizards.JavaProjectWizardFirstPa ge$JREGroup. <init>(JavaProjectWizardFirstPage.java:349)
at
org.eclipse.jdt.internal.ui.wizards.JavaProjectWizardFirstPa ge.createControl(JavaProjectWizardFirstPage.java:751)
at
org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDi alog.java:1046)
at
org.eclipse.jface.wizard.WizardDialog.access$2(WizardDialog. java:1038)
at org.eclipse.jface.wizard.WizardDialog$4.run(WizardDialog.jav a:1028)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog. java:1026)
at
org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:757)
at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:351)
at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.jav a:660)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3180)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2856)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
at org.eclipse.jface.window.Window.open(Window.java:796)
at
org.eclipse.ui.actions.NewProjectAction.run(NewProjectAction .java:116)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3180)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2856)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1930)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
at java.lang.reflect.Method.invoke(libgcj.so.70)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Re: eclipse crash on new project wizard [message #203741 is a reply to message #203696] Fri, 06 April 2007 15:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

iain wrote:
> Hi
>
> Just switched from windoze to a shiny new install of Ubuntu and
> installed Eclipse and Sun's latest j2ee. Thought it was time to make
> the switch ;-) Upon loading eclipse and starting the new project wizard
> however my shiny new build was tarnished somewhat by the nasty little
> crash which I have picked up from the logs and detailed below.
>
> Anyone know the fix? Seems that it can't find my jvm name???
>
> Many thanks
> Iain
>
> ---
>
> java.lang.NullPointerException
> at
> org.eclipse.jdt.internal.ui.wizards.JavaProjectWizardFirstPa ge$JREGroup.getDefaultJVMName(JavaProjectWizardFirstPage.jav a:443)
>
> at
> org.eclipse.jdt.internal.ui.wizards.JavaProjectWizardFirstPa ge$JREGroup.getDefaultJVMLabel(JavaProjectWizardFirstPage.ja va:447)
>
> at
> org.eclipse.jdt.internal.ui.wizards.JavaProjectWizardFirstPa ge$JREGroup. <init>(JavaProjectWizardFirstPage.java:349)
>
> at
> org.eclipse.jdt.internal.ui.wizards.JavaProjectWizardFirstPa ge.createControl(JavaProjectWizardFirstPage.java:751)
>
> at
> org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDi alog.java:1046)
> at org.eclipse.jface.wizard.WizardDialog.access$2(WizardDialog. java:1038)
> at org.eclipse.jface.wizard.WizardDialog$4.run(WizardDialog.jav a:1028)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog. java:1026)
> at
> org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:757)
> at
> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:351)
> at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.jav a:660)
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3180)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2856)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
> at org.eclipse.jface.window.Window.open(Window.java:796)
> at org.eclipse.ui.actions.NewProjectAction.run(NewProjectAction .java:116)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3180)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2856)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1930)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:422)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>
> at java.lang.reflect.Method.invoke(libgcj.so.70)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
> at org.eclipse.core.launcher.Main.run(Main.java:977)
> at org.eclipse.core.launcher.Main.main(Main.java:952)
>
>

It appears as though Eclipse is finding the gcj VM instead of the Sun
VM. Easiest solution is to provide a -vm parameter on the command used
to start Eclipse. The parameter should be the path to the Sun java
executable (eclipse -vm /opt/java1.6.xx/bin/java or where ever your Sun
VM is installed)
Re: eclipse crash on new project wizard [message #203906 is a reply to message #203741] Sun, 08 April 2007 17:29 Go to previous message
Eclipse UserFriend
Originally posted by: a.b.com

Thanks David

That worked a treat. I have once again a shiny new build, albeit with an
extra alias in the .bashrc

Cheers
Iain
Previous Topic:Code stops working on new Eclipse install!
Next Topic:Question - Editing an exe file
Goto Forum:
  


Current Time: Fri Apr 26 09:10:58 GMT 2024

Powered by FUDForum. Page generated in 0.09868 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top