Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Runtime external jars
Runtime external jars [message #76972] Tue, 17 June 2003 17:27 Go to next message
Eclipse UserFriend
Originally posted by: hgarcia.oogo.net

Hi

I am developing a plug-in for Eclipse 2.1. It uses several external
jars. It compiles in the workbench but when I run the runtime and error
message in the view. I tried added the names of jars to the plugin.xml
but still there is an error. I am not deploying the plug-in as of yet.
Any suggestions?

-H
Re: Runtime external jars [message #77246 is a reply to message #76972] Tue, 17 June 2003 22:40 Go to previous messageGo to next message
Eclipse UserFriend
Hugo A. Garcia wrote:
> Hi
>
> I am developing a plug-in for Eclipse 2.1. It uses several external
> jars. It compiles in the workbench but when I run the runtime and error
> message in the view. I tried added the names of jars to the plugin.xml
> but still there is an error. I am not deploying the plug-in as of yet.
> Any suggestions?

Don't use external JARs.

1. Copy the JARs into the root of the plugin project.
2. Open the Plugin Manifest Editor on plugin.xml.
3. Select the Runtime tab.
4. Add your JARs to the list of run-time libraries.

Jeff
Re: Runtime external jars [message #77419 is a reply to message #77246] Wed, 18 June 2003 04:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Frank_van_den_Beuken.programmingresearch.com

"Jeff Hunter" <jxh106@po.cwru.edu> wrote in message
news:bcojem$ldm$1@rogue.oti.com...
> Hugo A. Garcia wrote:
> > Hi
> >
> > I am developing a plug-in for Eclipse 2.1. It uses several external
> > jars. It compiles in the workbench but when I run the runtime and error
> > message in the view. I tried added the names of jars to the plugin.xml
> > but still there is an error. I am not deploying the plug-in as of yet.
> > Any suggestions?
>
> Don't use external JARs.
>
> 1. Copy the JARs into the root of the plugin project.
> 2. Open the Plugin Manifest Editor on plugin.xml.
> 3. Select the Runtime tab.
> 4. Add your JARs to the list of run-time libraries.
I have a similar problem: my plug-in also requires some jars.

I have added them in my plug-in project (using "Add JARs..." on the
Libraries tab of the Project Properties), and they are shown as jar files in
the root of the plugin project.

On the filesystem, the jar is physically located in a subfolder of the
plugin project and not in the root. Is this a problem?

Also I have added a jar in the Runtime tab of the plugin.xml.

I can compile the plugin and also launch the runtime workbench and it also

shows the action that I added.

However, when I execute the action, I get a NoClassDefFoundError on a class

that is located in the jar that I added.

Any further suggestions?



Thanks in advance,
Frank
Re: Runtime external jars [message #77484 is a reply to message #77419] Wed, 18 June 2003 04:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Frank_van_den_Beuken.programmingresearch.com

"Frank van den Beuken" <Frank_van_den_Beuken@programmingresearch.com> wrote
in message news:bcp6a7$33e$1@rogue.oti.com...
> I have added them in my plug-in project (using "Add JARs..." on the
> Libraries tab of the Project Properties), and they are shown as jar files
in
> the root of the plugin project.
>
> On the filesystem, the jar is physically located in a subfolder of the
> plugin project and not in the root. Is this a problem?
>
> Also I have added a jar in the Runtime tab of the plugin.xml.

Just found out that I need to specify the relative path for the jar file on
the Runtime tab instead of just the name of the jar file.
My guess is that I should specify as much as possible on this runtime tab
and look upon the Project Propeties libraries as information derived from
the runtime tab?

Frank
Re: Runtime external jars [message #77840 is a reply to message #77484] Wed, 18 June 2003 11:57 Go to previous messageGo to next message
Eclipse UserFriend
Frank van den Beuken wrote:
<snip>

> Just found out that I need to specify the relative path for the jar file on
> the Runtime tab instead of just the name of the jar file.
> My guess is that I should specify as much as possible on this runtime tab
> and look upon the Project Propeties libraries as information derived from
> the runtime tab?

Yes, exactly. Modifying the project properties directly for a plugin
project is a sign of danger.

Go to Window > Preferences > Plug-In Development > Java Build Path
Control and make sure you have all options checked. Then, whenever you
modify your plugin manifest using the manifest editor, the Java build
path for your project will be automatically updated.

Jeff
Re: Runtime external jars [message #78182 is a reply to message #76972] Wed, 18 June 2003 19:57 Go to previous message
Eclipse UserFriend
Originally posted by: susan.b.foster.intel.com

Hugo A. Garcia wrote:

> Hi

> I am developing a plug-in for Eclipse 2.1. It uses several external
> jars. It compiles in the workbench but when I run the runtime and error
> message in the view. I tried added the names of jars to the plugin.xml
> but still there is an error. I am not deploying the plug-in as of yet.
> Any suggestions?

> -H

Try looking at the build.properties file. When I added our icons folder
to the bin.include build script variable they were included in the
exported plugin, and they weren't when I included them in the runtime
library.
Previous Topic:Eclipse BOF at JavaOne 2003
Next Topic:incremental search
Goto Forum:
  


Current Time: Wed Apr 30 22:49:35 EDT 2025

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

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

Back to the top