NullPointerException when creating a simple RCP project [message #447839] |
Mon, 17 April 2006 20:00  |
Eclipse User |
|
|
|
Originally posted by: betty06gao.yahoo.com
I got NullPointerException when trying to creating a RCP project.
Basically, I followed the RCP tutorial in Eclipse,
1. select New->project and choose Plug-in project from Plugin-in
developement categary
2. Fill the project name, click next
3. select "yes" for creating a rich client application in the bottom
section. Click next.
4. select the "RCP Mail Template" from the RCP template, Click Finish.
Then I got this NullPointException
I am wondering whether I didn't set up the RCP correctly.
What I did is:
1. downloaded eclipse-SDK-3.1.2-win32.zip and extracted the files in
c:\eclipse
2. downloaded eclipse-RCP-SDK-3.1.2-win32.zip and extracted the files in
c:\eclipseSDK\eclipse
3. Run the IDE.
4. I am not quite sure how to configure this RCP-SDK. What I did is:
got to Windows>Preferences>Plugin-Development>Target platform, and
configure the location
to be c:\eclipseSDK\eclipse. Is this correct?
The Exception in the log file is:
java.lang.NullPointerException
at
org.eclipse.pde.ui.templates.AbstractTemplateSection.generat eFiles(AbstractTemplateSection.java(Compiled
Code))
at
org.eclipse.pde.ui.templates.AbstractTemplateSection.generat eFiles(AbstractTemplateSection.java(Compiled
Code))
at
org.eclipse.pde.ui.templates.AbstractTemplateSection.generat eFiles(AbstractTemplateSection.java:278)
at
org.eclipse.pde.ui.templates.AbstractTemplateSection.execute (AbstractTemplateSection.java:348)
at
org.eclipse.pde.ui.templates.BaseOptionTemplateSection.execu te(BaseOptionTemplateSection.java:269)
at
org.eclipse.pde.ui.templates.AbstractNewPluginTemplateWizard .performFinish(AbstractNewPluginTemplateWizard.java:94)
at
org.eclipse.pde.internal.ui.wizards.plugin.NewProjectCreatio nOperation.execute(NewProjectCreationOperation.java:261)
at
org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:98)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1721)
at
org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:110)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:346)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:291)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 830)
at
org.eclipse.pde.internal.ui.wizards.plugin.NewPluginProjectW izard.performFinish(NewPluginProjectWizard.java:102)
at
org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:680)
at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:349)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:556)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java (Compiled
Code))
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Inlined Compiled
Code))
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va(Compiled
Code))
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled
Code))
at org.eclipse.jface.window.Window.runEventLoop(Window.java(Com piled
Code))
at org.eclipse.jface.window.Window.open(Window.java:787)
at org.eclipse.ui.actions.NewProjectAction.run(NewProjectAction .java:114)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:538)
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 (Compiled
Code))
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Inlined Compiled
Code))
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va(Compiled
Code))
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled
Code))
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a(Compiled
Code))
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:79)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Thank you very much for your help!
Betty
|
|
|
|
|
Re: NullPointerException when creating a simple RCP project [message #448126 is a reply to message #448124] |
Tue, 18 April 2006 13:57  |
Eclipse User |
|
|
|
Betty Gao wrote:
> Hi Pierre,
>
> Thank you very much for your quick response. I downloaded
> eclipse-SDK-3.2RC1-win32.zip and unzipped it in c:\eclipse. When I tried
> to run the eclipse.exe, I got the following error. Do I need to install
> anything else in c:\eclipse?
> Thanks a lot!
Was c:\eclipse empty before you unzipped anything?
Always install eclipse into an empty directory. But this might not be
your problem.
Also, you should probably be on at least java 1.4.2
Later,
PW
|
|
|
Powered by
FUDForum. Page generated in 0.37530 seconds