Extern jars into RCP Product [message #452807] |
Sun, 16 July 2006 09:09 |
Eclipse User |
|
|
|
Originally posted by: florianwendland.freenet.de
Hello all,
i've got a problem, if i want to deploy my recp application as a standalone
application.
I followed the steps described in the eclipse article, but when i want to
include an external jar (jdom, for example) into the Hello World-Sample-RCP,
it doesn't work anymore. I wonder of this behaviour, because inside eclipse,
the product with the external jars starts perfect. But outise eclipse, the
following exception is thrown:
!SESSION 2006-07-14
16:33:22.468 -----------------------------------------------
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
Command-line arguments: -os win32 -ws win32 -arch x86
!ENTRY org.eclipse.osgi 2006-07-14 16:33:24.906
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: org/jdom/Document
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
I hope, that anybody could help me.
Thx
Florian Wendland
|
|
|
Re: Extern jars into RCP Product [message #452808 is a reply to message #452807] |
Sun, 16 July 2006 10:25 |
Thomas Schindl Messages: 6651 Registered: July 2009 |
Senior Member |
|
|
You need to make sure that your external jars are also exported. There's
plenty of information around how to do this (search this news-group to
see them). I for my part always create plugins (New>Project>Plugins from
Existing jars) from external-jars I'm using and add them as a dependency
to my project.
Tom
Florian Wendland wrote:
> Hello all,
> i've got a problem, if i want to deploy my recp application as a standalone
> application.
>
> I followed the steps described in the eclipse article, but when i want to
> include an external jar (jdom, for example) into the Hello World-Sample-RCP,
> it doesn't work anymore. I wonder of this behaviour, because inside eclipse,
> the product with the external jars starts perfect. But outise eclipse, the
> following exception is thrown:
>
> !SESSION 2006-07-14
> 16:33:22.468 -----------------------------------------------
> 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
> Command-line arguments: -os win32 -ws win32 -arch x86
>
> !ENTRY org.eclipse.osgi 2006-07-14 16:33:24.906
> !MESSAGE Application error
> !STACK 1
> java.lang.NoClassDefFoundError: org/jdom/Document
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
> at java.lang.Class.getConstructor0(Unknown Source)
> at java.lang.Class.newInstance0(Unknown Source)
> at java.lang.Class.newInstance(Unknown Source)
>
> I hope, that anybody could help me.
> Thx
> Florian Wendland
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03794 seconds