[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: Runtime classpath problems

Jon,

You have a few options.

The most straight-forward option is to put the 5 jars in your plugin folder, and add references to them in the runtime tag of your plugin.xml. For example:

   <runtime>
      <library name="myPlugin.jar"/>
      <library name="jar1.jar"/>
      <library name="jar2.jar"/>
      <library name="jar3.jar"/>
      <library name="jar4.jar"/>
      <library name="jar5.jar"/>
   </runtime>

If you want more than one plugin to use these jars, it might make sense to make small plugins for each jar and require the plugins in your plugin.xml.

Hope this helps.

jkca

Jon Hatcher wrote:
I have 5 jars that I need to be available to my plugin at runtime.  At
least, I seem to be getting NoClassDefFound's at runtime which indicates
those classes (which are in the jars) are not on the CP.  How do I add these
jars to the classpath?

The runtime tab of the PDE editor allows you to contribute source folders
into a jar, but jars inside jars won't solve my problem.  Any ideas?

Thanks very much!
Jon