Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » sharing jars..
sharing jars.. [message #115757] Mon, 25 August 2003 01:33 Go to next message
Eclipse UserFriend
hi,
i have several plug-ins which use a few jars.
so far any jar file was located in each and every project/plugin folder.

i want to relocate them into one specific location so my different plugins
could be consists with any new/updated jar file. (for example i moved them
to eclipse/plugins/lib)

now when i configurating the classpath of any project i use - Add External
Jars
and the project compiles perfectly.
but when i try to run it i get a runtime error,
"java.lang.NoClassDefFoundError..." i guess it can't find the jars...

what am i doing wrong? (maybe something in the plugin.xml file?? )

is there a different way to share jars between plugins??

thanks,
Asaf.
Re: sharing jars.. [message #115837 is a reply to message #115757] Mon, 25 August 2003 04:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jmordax.terra.es

I think you should create a plugin with commons, which in its plugin
descriptor exports all those JAR files.
Then the rest of your plugins should add this commons plugins as requiered.

I did this and it works. But perhaps there are other ways.......

Hope this helps,

Chemi.

Asaf wrote:

>hi,
>i have several plug-ins which use a few jars.
>so far any jar file was located in each and every project/plugin folder.
>
>i want to relocate them into one specific location so my different plugins
>could be consists with any new/updated jar file. (for example i moved them
>to eclipse/plugins/lib)
>
>now when i configurating the classpath of any project i use - Add External
>Jars
>and the project compiles perfectly.
>but when i try to run it i get a runtime error,
>"java.lang.NoClassDefFoundError..." i guess it can't find the jars...
>
>what am i doing wrong? (maybe something in the plugin.xml file?? )
>
>is there a different way to share jars between plugins??
>
>thanks,
>Asaf.
>
Re: sharing jars.. [message #116518 is a reply to message #115837] Tue, 26 August 2003 04:29 Go to previous message
Eclipse UserFriend
"Chemi" <jmordax@terra.es> p
Previous Topic:creating plugin servers
Next Topic:Setting the checked nodes in a CheckboxTreeViewer
Goto Forum:
  


Current Time: Tue Jul 15 12:54:43 EDT 2025

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

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

Back to the top