Login  Register

Re: ImageJ and Jython 2nd try

Posted by Albert Cardona on Jan 17, 2008; 3:54am
URL: http://imagej.273.s1.nabble.com/ImageJ-and-Jython-2nd-try-tp3697554p3697555.html

Sebastian,


> And one more
> question. Does the ImageJ.cfg file has to look like this:
>
> -------------------------------------------------------
> .
> jre\bin\javaw.exe
> -Xmx640m -cp ij.jar ij.ImageJ
> -cp C:\jython2.2.1\jython.jar
> j-------------------------------------------------------
>  


Just merge both classpath (-cp) statements into one, like this:

jre\bin\javaw.exe
-Xmx640m -cp ij.jar;C:\jython2.2.1\jython.jar ij.ImageJ

About your error: you need a newer java VM. I suggest 1.6.0; just
download it and make sure that the ImageJ.cfg points to it, instead of
the default.


As for using Jython within ImageJ: I have made a Jython interpreter
available as an ImageJ plugin here:

http://www.mcdb.ucla.edu/research/hartenstein/acardona/software.html#ImageJ%20Jython%20Interpreter

some examples:

http://www.mcdb.ucla.edu/research/hartenstein/acardona/jython_imagej_examples.html


Download the interpreter packed with the utilities:

http://www.mcdb.ucla.edu/research/hartenstein/acardona/plugins/Jython.zip


Albert

--
Albert Cardona
http://www.mcdb.ucla.edu/Research/Hartenstein/acardona