EFS Problem [message #461287] |
Mon, 08 January 2007 17:21  |
Eclipse User |
|
|
|
Originally posted by: florianwendland.freenet.de
Hello all,
I've tried something with the Eclipse Filesystem. I've included all
required jars and plugins, both in the runtime of plugin.xml and in the
build path, but the following code displays allways the added stack trace:
IFileSystem fs = EFS.getLocalFileSystem();
The Stack Trace:
!ENTRY org.eclipse.osgi 4 0 2007-01-08 23:16:03.796
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: org/eclipse/core/filesystem/EFS
at pingproject.Application.run(Application.java:86)
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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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)
!SESSION 2007-01-08 23:17:55.437
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments: -product PingProject.product
Command-line arguments: -product PingProject.product -data C:\Dokumente
und Einstellungen\Florian Wendland.FLORIAN\Eigene Dateien\TFH
Flo\SWP\Quellcode/../runtime-ping.product(1) -dev file:C:/Dokumente und
Einstellungen/Florian Wendland.FLORIAN/Eigene Dateien/TFH
Flo/SWP/Quellcode/.metadata/.plugins/org.eclipse.pde.core/pi ng.product
(1)/dev.properties -os win32 -ws win32 -arch x86
!ENTRY org.eclipse.osgi 4 0 2007-01-08 23:17:57.625
!MESSAGE Application error
!STACK 1
java.lang.ClassCastException:
org.eclipse.core.internal.filesystem.local.LocalFileSystem
at
org.eclipse.core.internal.filesystem.InternalFileSystemCore. getFileSystem(InternalFileSystemCore.java:70)
at
org.eclipse.core.internal.filesystem.InternalFileSystemCore. getLocalFileSystem(InternalFileSystemCore.java:89)
at org.eclipse.core.filesystem.EFS.getLocalFileSystem(EFS.java: 265)
at pingproject.Application.run(Application.java:86)
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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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: EFS Problem [message #461294 is a reply to message #461293] |
Mon, 08 January 2007 17:55   |
Eclipse User |
|
|
|
Originally posted by: florianwendland.freenet.de
Wow,
I've forgotten to chech the dependencie tab... dam :)
Thanks, that was the problem
Jakub Jurkiewicz schrieb:
> Did you add org.eclipse.core.filesystem in Dependencies tab in plugin.xml?
> I hope this help!
>
> Jakub Jurkiewicz
>
> Florian Wendland wrote:
>> Hi Jakub,
>>
>> here it is :)
>>
>> <library name="lib/commons-codec-1.3.jar">
>> <export name="*"/>
>> </library>
>> <library name="lib/commons-lang-2.0.jar">
>> <export name="*"/>
>> </library>
>> <library name="lib/jdom.jar">
>> <export name="*"/>
>> </library>
>> <library name="lib/mysql_driver.jar">
>> <export name="*"/>
>> </library>
>> <library name="lib/org.eclipse.jface.text_3.2.0.v20060605-1400.jar">
>> <export name="*"/>
>> </library>
>> <library name="lib/org.eclipse.text_3.2.0.v20060605-1400.jar">
>> <export name="*"/>
>> </library>
>> <library name="lib/org.eclipse.ui_3.2.1.M20060913-0800.jar">
>> <export name="*"/>
>> </library>
>> <library name="lib/org.eclipse.ui.console_3.1.100.v20060605.jar">
>> <export name="*"/>
>> </library>
>> <library name="lib/org.eclipse.ui.editors_3.2.1.r321_v20060721.jar">
>> <export name="*"/>
>> </library>
>> <library name="lib/org.eclipse.ui.ide_3.2.1.M20060915-1030.jar">
>> <export name="*"/>
>> </library>
>> <library
>> name=" lib/org.eclipse.ui.workbench.texteditor_3.2.0.v20060605-1400 .jar ">
>> <export name="*"/>
>> </library>
>> <library name="lib/org.eclipse.core.filesystem_1.0.0.v20060603.jar">
>> <export name="*"/>
>> </library>
>> <library
>> name=" lib/org.eclipse.core.filesystem.win32.x86_1.0.0.v20060603.ja r ">
>> <export name="*"/>
>> </library>
>>
>>
>> Jakub Jurkiewicz schrieb:
>>> Hi Florian,
>>>
>>> Could you write which exactly plugins did you include in runtime tab
>>> of plugin.xml?
>>>
>>> regards
>>> Jakub Jurkiewicz
>>>
>>> Florian Wendland wrote:
>>>> Hello all,
>>>>
>>>> I've tried something with the Eclipse Filesystem. I've included all
>>>> required jars and plugins, both in the runtime of plugin.xml and in
>>>> the build path, but the following code displays allways the added
>>>> stack trace:
>>>>
>>>> IFileSystem fs = EFS.getLocalFileSystem();
>>>>
>>>> The Stack Trace:
>>>>
>>>> !ENTRY org.eclipse.osgi 4 0 2007-01-08 23:16:03.796
>>>> !MESSAGE Application error
>>>> !STACK 1
>>>> java.lang.NoClassDefFoundError: org/eclipse/core/filesystem/EFS
>>>> at pingproject.Application.run(Application.java:86)
>>>> 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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>>> at java.lang.reflect.Method.invoke(Unknown Source)
>>>> 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)
>>>> !SESSION 2007-01-08 23:17:55.437
>>>> -----------------------------------------------
>>>> eclipse.buildId=unknown
>>>> java.version=1.5.0_06
>>>> java.vendor=Sun Microsystems Inc.
>>>> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
>>>> Framework arguments: -product PingProject.product
>>>> Command-line arguments: -product PingProject.product -data
>>>> C:\Dokumente und Einstellungen\Florian Wendland.FLORIAN\Eigene
>>>> Dateien\TFH Flo\SWP\Quellcode/../runtime-ping.product(1) -dev
>>>> file:C:/Dokumente und Einstellungen/Florian Wendland.FLORIAN/Eigene
>>>> Dateien/TFH
>>>> Flo/SWP/Quellcode/.metadata/.plugins/org.eclipse.pde.core/pi ng.product
>>>> (1)/dev.properties -os win32 -ws win32 -arch x86
>>>>
>>>> !ENTRY org.eclipse.osgi 4 0 2007-01-08 23:17:57.625
>>>> !MESSAGE Application error
>>>> !STACK 1
>>>> java.lang.ClassCastException:
>>>> org.eclipse.core.internal.filesystem.local.LocalFileSystem
>>>> at
>>>> org.eclipse.core.internal.filesystem.InternalFileSystemCore. getFileSystem(InternalFileSystemCore.java:70)
>>>>
>>>> at
>>>> org.eclipse.core.internal.filesystem.InternalFileSystemCore. getLocalFileSystem(InternalFileSystemCore.java:89)
>>>>
>>>> at org.eclipse.core.filesystem.EFS.getLocalFileSystem(EFS.java: 265)
>>>> at pingproject.Application.run(Application.java:86)
>>>> 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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>>> at java.lang.reflect.Method.invoke(Unknown Source)
>>>> 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: EFS Problem [message #461330 is a reply to message #461294] |
Tue, 09 January 2007 07:08  |
Eclipse User |
|
|
|
You can check the 'automatically validate dependencies' tab on the launch configuration. That way, it will warn you when starting if you've got missing dependencies.
Alex.
PS always good to trim down the replied message if you can :-)
|
|
|
Powered by
FUDForum. Page generated in 0.07312 seconds