Login  Register

Re: ImageJ and Jython 2nd try

Posted by ctrueden on Jan 16, 2008; 4:54pm
URL: http://imagej.273.s1.nabble.com/ImageJ-and-Jython-2nd-try-tp3697554p3697556.html

Hi Sebastian,

The "UnsupportedClassVersionError" typically means you are trying to
use a JAR file that was compiled with a newer version of Java than you
are using to execute it. One thing to try is installing Java 6 and
using that rather than the JRE that comes with ImageJ.

-Curtis

On Jan 16, 2008 6:34 AM, Sebastian Rhode
<[hidden email]> wrote:

>
> Hi,
>
>  Hopefully you can help me out!
>
>  I try to use ImageJ and Jython, but I do not get it to work. I installed
> Jython2.2.1 with the ImageJ java interpreter that runs ImageJ
> (c:\ImageJ\jre). That worked fine!
>
>  I downloades the jython.21.class file (see picture) and typed (in command
> window):
>
>  ------------------------------------------------------
>  C:\ImageJ\jre\bin\java -cp . jython-21
>  ------------------------------------------------------
>
>  But all I get is that error and I can not figure out why. 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
>  -------------------------------------------------------
>
>  I would be glad, if you could give me hint, what I did wrong.
>
>  Best regards,
>
>  Sebastian
>
>