Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Classpath problem when exporting RCP app
Classpath problem when exporting RCP app [message #437994] Tue, 11 October 2005 09:20 Go to next message
Martin is currently offline MartinFriend
Messages: 35
Registered: July 2009
Member
Hi,

my RCP app consists of a functionality plug-in and an
application-launching plug-in. The former depends on an external .jar
file I added to the project's Java Build Path. Now I want to export the
application as an eclipse product. I added the .jar to Extra Classpath
Entries in plugin.xml and had to remove it from the Java Build Path
(double referencing -> build error). Now I can export my product without
errors, but the .jar is not exported to the .zip file; so when my code
uses a class from the .jar a NoClassDefError is thrown. The same happens
when I run the app from within eclipse with the launch config that used
to work prior to the changes described above.

I guess I've done something wrong, added the .jar in the wrong place or
something like that. Can anyone give me advice on this?

Thanks & regards,
Martin
Re: Classpath problem when exporting RCP app [message #437996 is a reply to message #437994] Tue, 11 October 2005 10:01 Go to previous messageGo to next message
arne anka is currently offline arne ankaFriend
Messages: 133
Registered: July 2009
Senior Member
make a plugin from the jar and add it to the dependencies. how to do is
explained several times in the list-archive (www.eclipsezone.com/forums/).
basically it comes down to new -> other -> "plug-in from existing jar
archives".
Re: Classpath problem when exporting RCP app [message #438039 is a reply to message #437996] Tue, 11 October 2005 11:51 Go to previous messageGo to next message
Martin is currently offline MartinFriend
Messages: 35
Registered: July 2009
Member
arne anka wrote:
> make a plugin from the jar and add it to the dependencies. how to do is
> explained several times in the list-archive
> (www.eclipsezone.com/forums/). basically it comes down to new -> other
> -> "plug-in from existing jar archives".

Thanks a lot, that worked fine :) I was not aware that creating a
jar-wrapping plug-in was so easy.

Martin
Re: Classpath problem when exporting RCP app [message #438040 is a reply to message #438039] Tue, 11 October 2005 11:57 Go to previous message
arne anka is currently offline arne ankaFriend
Messages: 133
Registered: July 2009
Senior Member
> I was not aware that creating a jar-wrapping plug-in was so easy.

me too -- until i tried it for the first time ;-)
Previous Topic:How to use Platfrom Images without the discouraged access warning?
Next Topic:exporting product for WebStart
Goto Forum:
  


Current Time: Thu Dec 26 14:50:20 GMT 2024

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

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

Back to the top