Skip to main content



      Home
Home » Eclipse Projects » GEF » using an external jar in runtime workbench
using an external jar in runtime workbench [message #77580] Wed, 30 April 2003 14:18 Go to next message
Eclipse UserFriend
Originally posted by: aekapon.comcast.net

i just posted this to the eclipse platform newsgroup and got a response that
answered my question somewhat.

My problem is that i am linking to an external Jar called acmeLib.jar. My
program compiles and can find all the classes i need, but when i go to run,
i get a NoClassDefFoundError.
The answer I got on the platform newsgroup said that i need to link it in
the classpath of my launch configuration, the only place to do that is when
you are running as a Java Application.

So i need to find out how to do one of two things, link the library in the
Run-TimeWorkbench, or launch my plug-in as a java app, but currently im not
sure how to do either.

When i tried to run as a java app, the only feedback i got was in the
console, i got nothing to pop up. All im trying to do right now is use the
hellogef6 example and my acmeLib.jar file together

thank you,
Niall Little
Re: using an external jar in runtime workbench [message #77629 is a reply to message #77580] Thu, 01 May 2003 08:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: M.Langenbach.twi.tudelft.nl

Hi,

Seems like more people are having this problem (including me).
I got the error
Unhandled exception caught in event loop.
when I was trying to use a class from an external jar file.

This error is not completely the same as yours, but i guess our problems are
related.
Finally I got it to work. The solution for my problem was very simple:
- add the .jar file to the Runtime libraries on the run-time tab of the
plugin.xml file.
- copy the .jar file to the root directory of the plug-in.
- run as run-time workbench.
- add jar to the libraries tab on the java build path settings.

hope you can use this info,
Mark

"Niall Little" <aekapon@comcast.net> wrote in message
news:b8p40j$fvt$1@rogue.oti.com...
> i just posted this to the eclipse platform newsgroup and got a response
that
> answered my question somewhat.
>
> My problem is that i am linking to an external Jar called acmeLib.jar. My
> program compiles and can find all the classes i need, but when i go to
run,
> i get a NoClassDefFoundError.
> The answer I got on the platform newsgroup said that i need to link it in
> the classpath of my launch configuration, the only place to do that is
when
> you are running as a Java Application.
>
> So i need to find out how to do one of two things, link the library in the
> Run-TimeWorkbench, or launch my plug-in as a java app, but currently im
not
> sure how to do either.
>
> When i tried to run as a java app, the only feedback i got was in the
> console, i got nothing to pop up. All im trying to do right now is use the
> hellogef6 example and my acmeLib.jar file together
>
> thank you,
> Niall Little
>
>
Re: using an external jar in runtime workbench [message #82008 is a reply to message #77580] Wed, 04 June 2003 10:34 Go to previous message
Eclipse UserFriend
Originally posted by: gariazzo.prosilog.com

"Niall Little" <aekapon@comcast.net> a
Previous Topic:FWD: what can cause removeNotify to be called twice
Next Topic:Drag & Drop margins
Goto Forum:
  


Current Time: Sun May 11 22:20:21 EDT 2025

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

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

Back to the top