NoClassDefFoundError: org/eclipse/core/resources/ResourcesPlugin [message #243470] |
Tue, 18 December 2007 13:35 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: vikas.khengare.unnat-e.com
Hi Friends,
I am creating new file and saving some data in it. I am able to create new
file in "runtime-EclipseApplication" folder and save data in it on my
development machine. I am trying to get path to save file from
ResourcesPlugin.getWorkspace().getRoot().getLocation().toStr ing() .
But when I am trying to put my plug-in on test machine it is not creating
new file & throwing error.
!ENTRY org.eclipse.ui 4 0 2007-12-18 18:27:05.781
!MESSAGE org/eclipse/core/resources/ResourcesPlugin
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/core/resources/ResourcesPlugin
at kr.roboid.datalogger.ui.Packet.saveInToFile(Packet.java:137)
at kr.roboid.datalogger.ui.Packet.access$0(Packet.java:135)
at kr.roboid.datalogger.ui.Packet$1.widgetDisposed(Packet.java: 101)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:101)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:933)
at org.eclipse.swt.widgets.Widget.release(Widget.java:743)
at org.eclipse.swt.widgets.Composite.releaseChildren(Composite. java:636)
at org.eclipse.swt.widgets.Widget.release(Widget.java:746)
at org.eclipse.swt.widgets.Composite.releaseChildren(Composite. java:636)
at org.eclipse.swt.widgets.Widget.release(Widget.java:746)
at org.eclipse.swt.widgets.Widget.dispose(Widget.java:415)
at org.eclipse.ui.internal.PartPane.dispose(PartPane.java:167)
at org.eclipse.ui.internal.ViewPane.dispose(ViewPane.java:193)
at
org.eclipse.ui.internal.WorkbenchPartReference.dispose(Workb enchPartReferenc
e.java:639)
at
org.eclipse.ui.internal.WorkbenchPage.disposePart(WorkbenchP age.java:1548)
at
org.eclipse.ui.internal.WorkbenchPage.partRemoved(WorkbenchP age.java:1540)
at org.eclipse.ui.internal.ViewFactory.releaseView(ViewFactory. java:252)
at org.eclipse.ui.internal.Perspective.hideView(Perspective.jav a:494)
at org.eclipse.ui.internal.WorkbenchPage.hideView(WorkbenchPage .java:2208)
at org.eclipse.ui.internal.ViewPane.doHide(ViewPane.java:213)
at org.eclipse.ui.internal.PartStack.close(PartStack.java:499)
at org.eclipse.ui.internal.PartStack.close(PartStack.java:482)
at org.eclipse.ui.internal.PartStack$1.close(PartStack.java:106 )
at
org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation$1.handleE
vent(TabbedStackPresentation.java:81)
at
org.eclipse.ui.internal.presentations.util.AbstractTabFolder .fireEvent(Abstr
actTabFolder.java:267)
at
org.eclipse.ui.internal.presentations.util.AbstractTabFolder .fireEvent(Abstr
actTabFolder.java:276)
It works fine on development machine but not on test machine.
Can some one give some hints in this situation?
--
With best regards
From
Vikas R. Khengare
|
|
|
Re: NoClassDefFoundError: org/eclipse/core/resources/ResourcesPlugin [message #243475 is a reply to message #243470] |
Tue, 18 December 2007 13:42 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: merks.ca.ibm.com
Vikas,
Did you add a dependency on org.eclipse.core.resources in your MANIFEST.MF?
Vikas wrote:
> Hi Friends,
> I am creating new file and saving some data in it. I am able to create new
> file in "runtime-EclipseApplication" folder and save data in it on my
> development machine. I am trying to get path to save file from
> ResourcesPlugin.getWorkspace().getRoot().getLocation().toStr ing() .
>
> But when I am trying to put my plug-in on test machine it is not creating
> new file & throwing error.
>
> !ENTRY org.eclipse.ui 4 0 2007-12-18 18:27:05.781
> !MESSAGE org/eclipse/core/resources/ResourcesPlugin
> !STACK 0
> java.lang.NoClassDefFoundError: org/eclipse/core/resources/ResourcesPlugin
> at kr.roboid.datalogger.ui.Packet.saveInToFile(Packet.java:137)
> at kr.roboid.datalogger.ui.Packet.access$0(Packet.java:135)
> at kr.roboid.datalogger.ui.Packet$1.widgetDisposed(Packet.java: 101)
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:101)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:933)
> at org.eclipse.swt.widgets.Widget.release(Widget.java:743)
> at org.eclipse.swt.widgets.Composite.releaseChildren(Composite. java:636)
> at org.eclipse.swt.widgets.Widget.release(Widget.java:746)
> at org.eclipse.swt.widgets.Composite.releaseChildren(Composite. java:636)
> at org.eclipse.swt.widgets.Widget.release(Widget.java:746)
> at org.eclipse.swt.widgets.Widget.dispose(Widget.java:415)
> at org.eclipse.ui.internal.PartPane.dispose(PartPane.java:167)
> at org.eclipse.ui.internal.ViewPane.dispose(ViewPane.java:193)
> at
> org.eclipse.ui.internal.WorkbenchPartReference.dispose(Workb enchPartReferenc
> e.java:639)
> at
> org.eclipse.ui.internal.WorkbenchPage.disposePart(WorkbenchP age.java:1548)
> at
> org.eclipse.ui.internal.WorkbenchPage.partRemoved(WorkbenchP age.java:1540)
> at org.eclipse.ui.internal.ViewFactory.releaseView(ViewFactory. java:252)
> at org.eclipse.ui.internal.Perspective.hideView(Perspective.jav a:494)
> at org.eclipse.ui.internal.WorkbenchPage.hideView(WorkbenchPage .java:2208)
> at org.eclipse.ui.internal.ViewPane.doHide(ViewPane.java:213)
> at org.eclipse.ui.internal.PartStack.close(PartStack.java:499)
> at org.eclipse.ui.internal.PartStack.close(PartStack.java:482)
> at org.eclipse.ui.internal.PartStack$1.close(PartStack.java:106 )
> at
> org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation$1.handleE
> vent(TabbedStackPresentation.java:81)
> at
> org.eclipse.ui.internal.presentations.util.AbstractTabFolder .fireEvent(Abstr
> actTabFolder.java:267)
> at
> org.eclipse.ui.internal.presentations.util.AbstractTabFolder .fireEvent(Abstr
> actTabFolder.java:276)
>
> It works fine on development machine but not on test machine.
> Can some one give some hints in this situation?
>
>
|
|
|
Re: NoClassDefFoundError: org/eclipse/core/resources/ResourcesPlugin [message #243488 is a reply to message #243475] |
Tue, 18 December 2007 14:33 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: vikas.khengare.unnat-e.com
Hi Friends/ Ed Merks
Yes, I have added dependency on org.eclipse.core.resource in my MANIFEST.MF
file by writing,
Require-Bundle: org.eclipse.ui, org.eclipse.core.runtime,
org.eclipse.core.resources
I am getting error on line
" ResourcesPlugin.getWorkspace().getRoot().getLocation().toStr ing() " on test
machine, while on development machine it is giving path to "myWorkspace"
directory.
What else I can try?
--
With best regards
From
Vikas R. Khengare
"Ed Merks" <merks@ca.ibm.com> wrote in message
news:fk8ind$c7e$3@build.eclipse.org...
> Vikas,
>
> Did you add a dependency on org.eclipse.core.resources in your
MANIFEST.MF?
>
>
> Vikas wrote:
> > Hi Friends,
> > I am creating new file and saving some data in it. I am able to create
new
> > file in "runtime-EclipseApplication" folder and save data in it on my
> > development machine. I am trying to get path to save file from
> > ResourcesPlugin.getWorkspace().getRoot().getLocation().toStr ing() .
> >
> > But when I am trying to put my plug-in on test machine it is not
creating
> > new file & throwing error.
> >
> > !ENTRY org.eclipse.ui 4 0 2007-12-18 18:27:05.781
> > !MESSAGE org/eclipse/core/resources/ResourcesPlugin
> > !STACK 0
> > java.lang.NoClassDefFoundError:
org/eclipse/core/resources/ResourcesPlugin
> > at kr.roboid.datalogger.ui.Packet.saveInToFile(Packet.java:137)
> > at kr.roboid.datalogger.ui.Packet.access$0(Packet.java:135)
> > at kr.roboid.datalogger.ui.Packet$1.widgetDisposed(Packet.java: 101)
> > at
> >
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:101)
> > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
> > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
> > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:933)
> > at org.eclipse.swt.widgets.Widget.release(Widget.java:743)
> > at
org.eclipse.swt.widgets.Composite.releaseChildren(Composite. java:636)
> > at org.eclipse.swt.widgets.Widget.release(Widget.java:746)
> > at
org.eclipse.swt.widgets.Composite.releaseChildren(Composite. java:636)
> > at org.eclipse.swt.widgets.Widget.release(Widget.java:746)
> > at org.eclipse.swt.widgets.Widget.dispose(Widget.java:415)
> > at org.eclipse.ui.internal.PartPane.dispose(PartPane.java:167)
> > at org.eclipse.ui.internal.ViewPane.dispose(ViewPane.java:193)
> > at
> >
org.eclipse.ui.internal.WorkbenchPartReference.dispose(Workb enchPartReferenc
> > e.java:639)
> > at
> >
org.eclipse.ui.internal.WorkbenchPage.disposePart(WorkbenchP age.java:1548)
> > at
> >
org.eclipse.ui.internal.WorkbenchPage.partRemoved(WorkbenchP age.java:1540)
> > at
org.eclipse.ui.internal.ViewFactory.releaseView(ViewFactory. java:252)
> > at org.eclipse.ui.internal.Perspective.hideView(Perspective.jav a:494)
> > at
org.eclipse.ui.internal.WorkbenchPage.hideView(WorkbenchPage .java:2208)
> > at org.eclipse.ui.internal.ViewPane.doHide(ViewPane.java:213)
> > at org.eclipse.ui.internal.PartStack.close(PartStack.java:499)
> > at org.eclipse.ui.internal.PartStack.close(PartStack.java:482)
> > at org.eclipse.ui.internal.PartStack$1.close(PartStack.java:106 )
> > at
> >
org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation$1.handleE
> > vent(TabbedStackPresentation.java:81)
> > at
> >
org.eclipse.ui.internal.presentations.util.AbstractTabFolder .fireEvent(Abstr
> > actTabFolder.java:267)
> > at
> >
org.eclipse.ui.internal.presentations.util.AbstractTabFolder .fireEvent(Abstr
> > actTabFolder.java:276)
> >
> > It works fine on development machine but not on test machine.
> > Can some one give some hints in this situation?
> >
> >
|
|
|
Re: NoClassDefFoundError: org/eclipse/core/resources/ResourcesPlugin [message #243492 is a reply to message #243488] |
Tue, 18 December 2007 14:43 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: merks.ca.ibm.com
Vikas,
Perhaps the plugin in missing on the test machine. Have a look in the
error log of the workspace for the test machine to see it's complaining
about missing bundles. Given that it works in one place and not in the
other, the differences between the setups will be the key to solving the
problem...
Vikas wrote:
> Hi Friends/ Ed Merks
> Yes, I have added dependency on org.eclipse.core.resource in my MANIFEST.MF
> file by writing,
> Require-Bundle: org.eclipse.ui, org.eclipse.core.runtime,
> org.eclipse.core.resources
>
> I am getting error on line
> " ResourcesPlugin.getWorkspace().getRoot().getLocation().toStr ing() " on test
> machine, while on development machine it is giving path to "myWorkspace"
> directory.
>
> What else I can try?
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.08189 seconds