Login  Register

Re: integrating Tudor_DICOM_Pli

Posted by Peter Gregson on Sep 16, 2008; 2:01pm
URL: http://imagej.273.s1.nabble.com/integrating-Tudor-DICOM-Pli-tp3695089p3695094.html

Thanks, Johannes.  I made the changes that you suggested so that now all jar files are in /AddIns/JavaApps/ImageJ/plugins/DICOM.  When I try to run it, I get:



My current directory structure is as follows:



This error happens whether I click on the ImageJ.app icon or execute "run" from terminal window.  "run" now contains just:

cd /AddIns/JavaApps/ImageJ
java -jar /AddIns/JavaApps/ImageJ/ij.jar

I think that I have moved all the jar files as you suggested.  How can I get this working?

Best regards,
Peter

Johannes Hermen wrote
> java -cp $CLASSPATH -jar /AddIns/JavaApps/ImageJ/ij.jar

This will not work, as the Java VM does not use the "-cp" Variable if
started with "-jar"
Newer versions of ImageJ automatically load all jar-files that are placed
in the plugin dir. You can just place all the needed libs directly in the
plugins folder or in a direct  subfolder of it. Then ImageJ wil add them
to its classpath without hte need of a start script.

There will be a new Version of the DICOM Tools which will do that
automatically in November.

greets
             Johannes


-----------------------------------------------------------------
Johannes Hermen  -  Ingenieur de Recherche
Johannes.Hermen@tudor.lu
-----------------------------------------------------------------
CRP Henri Tudor  http://www.santec.tudor.lu
29, Avenue John F. Kennedy
L-1855 Luxembourg
-----------------------------------------------------------------