Posted by
Johannes Hermen on
Nov 03, 2005; 9:37am
URL: http://imagej.273.s1.nabble.com/ImageJ-startup-and-CLASSPATH-tp3704542p3704545.html
MESSAOUDI Cédric <
[hidden email]> wrote on 03.11.2005 09:53:58:
The problem is, that all the the external libraries are allready
jar-files, and it is not possible to pack a jar-file into another
jar-file.
One solution would be to unpack all the libraries and pack them again into
one big jar-file, but this is not a nice way of doing this, and it will
not work on signed libraries or because of licensing issues.
But thanks for your response.
Johannes Hermen
>
> Can't you just compile your plug-in as a jarfile with your libraries
inside?
>
> It should do the same thing, and if 2 plug-ins tries to load the same
> library from 2 locations, java only keeps the first one if I remember
> correctly.
>
> It should be simpler for the installation of plug-ins too.
>
> Cedric MESSAOUDI
> -----Message d'origine-----
> De : ImageJ Interest Group [mailto:
[hidden email]] De la part de
> Johannes Hermen
> Envoyé : jeudi 3 novembre 2005 09:10
> À :
[hidden email]
> Objet : ImageJ startup and CLASSPATH
>
> We are working on a DICOM plugin for ImageJ which requires some
additional
> libraries (jar-files) in the ImageJ CLASSPATH.
>
> Most of the other plugins who need additional libraries, equip their
> plugins with a own ImageJ startup-script which sets this CLASSPATH.
> The problem is, that if you install some of these plugins, you have to
> edit the startup-script to add all nessessary files to the CLASSPATH.
>
> To make the CLASSPATH handling a bit easier, we wrote a small
> "runImagej.jar" file which starts the ImageJ program with all library
> files in the "lib/" directory in its CLASSPATH.
>
> I Just wanted to ask if you know any better solution to solve this
> problem, or if you think this small starter application is a good way to
> solve this problem.
>
> Greets from Luxembourg
>
> Johannes Hermen
>
>
>