Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Extern jars into RCP Product
Extern jars into RCP Product [message #452807] Sun, 16 July 2006 09:09 Go to next message
Eclipse UserFriend
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 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
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
>
>
Previous Topic:Problems with Loggin/Classpath
Next Topic:Problem to active a perspective of another pluin
Goto Forum:
  


Current Time: Mon Oct 14 21:06:31 GMT 2024

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

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

Back to the top