Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » external jar
external jar [message #90869] Thu, 10 July 2003 06:46 Go to next message
Eclipse UserFriend
Originally posted by: philipp.tiedt.de.ibm.com

Hey,,

I am writing a plugin and want to use an external jar. Compiling the
source works fine. But running the Plugin it doesnt find the classes of
the jar any more.
I tried also to deliver the jar file with the plugin in a lib folder but
that doesnt work either.

Can anybody help?
thx
Philipp
Re: external jar [message #90884 is a reply to message #90869] Thu, 10 July 2003 06:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

The external JAR has to be inside your plug-in directory structure and
you have to declare the JAR as required in your plugin.xml.

HTH
Dani

philipp.tiedt@de.ibm.com wrote:

>Hey,,
>
>I am writing a plugin and want to use an external jar. Compiling the
>source works fine. But running the Plugin it doesnt find the classes of
>the jar any more.
>I tried also to deliver the jar file with the plugin in a lib folder but
>that doesnt work either.
>
>Can anybody help?
>thx
>Philipp
>
>
Re: external jar [message #90912 is a reply to message #90884] Thu, 10 July 2003 07:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: philipp.tiedt.de.ibm.com

Hi,

i have the jar in my plugin structure ... but HOW do i declare it as
required in my plugin.xml ? I thought you can only set the required
plugins by

<requires>
<import plugin>...</import plugin>
</requires>

if i try to add the package name, it can not be resolved...
Re: external jar [message #90925 is a reply to message #90912] Thu, 10 July 2003 08:10 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

philipp.tiedt@de.ibm.com wrote:

>Hi,
>
>i have the jar in my plugin structure ... but HOW do i declare it as
>required in my plugin.xml ? I thought you can only set the required
>plugins by
>
><requires>
> <import plugin>...</import plugin>
></requires>
>
>
<runtime>
<library name="YOUR.jar">
<export name="*"/>
</library>
</runtime>

Dani

>
>
Previous Topic:Re: internal API - org.eclipse.jdt.internal.ui.JavaPlugin
Next Topic:more lines in console?
Goto Forum:
  


Current Time: Sat Jul 19 07:05:31 EDT 2025

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

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

Back to the top