Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Problem with runtime workbench / plugin testing / external jars
Problem with runtime workbench / plugin testing / external jars [message #120490] Tue, 02 September 2003 15:24 Go to next message
Eclipse UserFriend
Originally posted by: ssr.whitestein.com

Hi

I am running Eclipse 2.1.1 on w2k.

I am developing an Eclipse Plugin. I can test it in the runtime
workbench... as long as I don't need anything not included in Eclipse.
Let me clumsily explain:

For access/manipulation to XML files I use JDOM. I can include the
jdom.jar in my Plugin Project, no problem (either with Properties>Build
Path>Add External JARs; or with importing the jar-file as File into the
project and then Properties>Build Path>Add External JARs. I can code
with classes provided by jdom.jar: import statements work, code assist
works, no error marks show up.

When I want to test the plugin in the runtime workbench, it seems that
there the classes from jdom.jar can't be found (I did some simple debug
tests: plugin code which uses jdom imports is just not executed).

Can anybody tell me how I need to correctly set up Eclipse/runtime
workbench so that it can handle "external" jar-files?

Thanks for your help, cheers,
Sascha
Re: Problem with runtime workbench / plugin testing / external jars [message #120660 is a reply to message #120490] Tue, 02 September 2003 20:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jmyron.ioconcepts.com

I'm guessing you need to do two things so the runtime workbench can access
the classes. Put a copy of the jdom jar file in the eclipse plugin directory
for your plugin. Then doubleclick on the project's plugin.xml file in the
package explorer. Click on the runtime tab then add the jdom jar file as a
runtime library.

"Sascha Robert" <ssr@whitestein.com> wrote in message
news:bj2cmc$2gs$1@eclipse.org...
> Hi
>
> I am running Eclipse 2.1.1 on w2k.
>
> I am developing an Eclipse Plugin. I can test it in the runtime
> workbench... as long as I don't need anything not included in Eclipse.
> Let me clumsily explain:
>
> For access/manipulation to XML files I use JDOM. I can include the
> jdom.jar in my Plugin Project, no problem (either with Properties>Build
> Path>Add External JARs; or with importing the jar-file as File into the
> project and then Properties>Build Path>Add External JARs. I can code
> with classes provided by jdom.jar: import statements work, code assist
> works, no error marks show up.
>
> When I want to test the plugin in the runtime workbench, it seems that
> there the classes from jdom.jar can't be found (I did some simple debug
> tests: plugin code which uses jdom imports is just not executed).
>
> Can anybody tell me how I need to correctly set up Eclipse/runtime
> workbench so that it can handle "external" jar-files?
>
> Thanks for your help, cheers,
> Sascha
>
>
Re: Problem with runtime workbench / plugin testing / external jars [message #121757 is a reply to message #120660] Wed, 03 September 2003 08:22 Go to previous message
Eclipse UserFriend
Originally posted by: ssr.whitestein.com

Hi Myron

Thanks for your help, it worked out.

1. I imported the jar into the Project folder
2. I included it with Properties>Java Build Path>ADD JARs... into the
project
3. I added it to the plugin.xml like this:

<runtime>
<library name="jdom.jar">
<export name="*"/>
</library>
</runtime>

Cheers, Sascha


J Myron Smith wrote:
> I'm guessing you need to do two things so the runtime workbench can access
> the classes. Put a copy of the jdom jar file in the eclipse plugin directory
> for your plugin. Then doubleclick on the project's plugin.xml file in the
> package explorer. Click on the runtime tab then add the jdom jar file as a
> runtime library.
>
> "Sascha Robert" <ssr@whitestein.com> wrote in message
> news:bj2cmc$2gs$1@eclipse.org...
>
>>Hi
>>
>>I am running Eclipse 2.1.1 on w2k.
>>
>>I am developing an Eclipse Plugin. I can test it in the runtime
>>workbench... as long as I don't need anything not included in Eclipse.
>>Let me clumsily explain:
>>
>>For access/manipulation to XML files I use JDOM. I can include the
>>jdom.jar in my Plugin Project, no problem (either with Properties>Build
>>Path>Add External JARs; or with importing the jar-file as File into the
>>project and then Properties>Build Path>Add External JARs. I can code
>>with classes provided by jdom.jar: import statements work, code assist
>>works, no error marks show up.
>>
>>When I want to test the plugin in the runtime workbench, it seems that
>>there the classes from jdom.jar can't be found (I did some simple debug
>>tests: plugin code which uses jdom imports is just not executed).
>>
>>Can anybody tell me how I need to correctly set up Eclipse/runtime
>>workbench so that it can handle "external" jar-files?
>>
>>Thanks for your help, cheers,
>>Sascha
>>
>>
>
>
>
Previous Topic:how to open a MessageDialog from progress monitor run method.
Next Topic:Eclipse and CVS: separability of code ?
Goto Forum:
  


Current Time: Thu Dec 26 15:13:10 GMT 2024

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

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

Back to the top