ImageJ not starting?!

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

ImageJ not starting?!

Weller Andrew Francis
Dear all,

I've just done an upgrade to 1.37i, but now I can't get ImageJ to
start?!

My unchanged Linux command line is:

java -Dplugins.dir=/home/ME/ImageJ -Xmx192m
-cp /opt/ImageJ/ij.jar:/usr/lib/jvm/java-1.5.0-sun/lib/tools.jar
ij.Image

>From the terminal, the following error is given:

Exception in thread "main" java.lang.NoClassDefFoundError: ij/Image

Any ideas?!

Andy
Reply | Threaded
Open this post in threaded view
|

Re: ImageJ not starting?!

Weller Andrew Francis
I apologise - please ignore this. Somehow a "J" was deleted off the end
of my command line!? Must've been a keyboard slip...

On Tue, 2006-06-20 at 17:25 +0200, Andy Weller wrote:

> Dear all,
>
> I've just done an upgrade to 1.37i, but now I can't get ImageJ to
> start?!
>
> My unchanged Linux command line is:
>
> java -Dplugins.dir=/home/ME/ImageJ -Xmx192m
> -cp /opt/ImageJ/ij.jar:/usr/lib/jvm/java-1.5.0-sun/lib/tools.jar
> ij.Image
>
> >From the terminal, the following error is given:
>
> Exception in thread "main" java.lang.NoClassDefFoundError: ij/Image
>
> Any ideas?!
>
> Andy
Reply | Threaded
Open this post in threaded view
|

Re: ImageJ not starting?!

dscho
In reply to this post by Weller Andrew Francis
Hi,

On Tue, 20 Jun 2006, Andy Weller wrote:

> I've just done an upgrade to 1.37i, but now I can't get ImageJ to
> start?!
>
> My unchanged Linux command line is:
>
> java -Dplugins.dir=/home/ME/ImageJ -Xmx192m
> -cp /opt/ImageJ/ij.jar:/usr/lib/jvm/java-1.5.0-sun/lib/tools.jar
> ij.Image
>
> >From the terminal, the following error is given:
>
> Exception in thread "main" java.lang.NoClassDefFoundError: ij/Image

Try ij.ImageJ instead of ij.Image (note the missing "J").

Hth,
Dscho
Reply | Threaded
Open this post in threaded view
|

Re: ImageJ not starting?!

pcloetens
Maybe this can also be useful. We define a script 'ImageJ'
that contains something like:

        #!/bin/sh

        ... define your VARIABLES ...

        java -Xmx1024m -DTANGO_HOST=$TANGO_HOST -Dplugins.dir=$IMAGEJDIR -cp  
$CLASSPATH ij.ImageJ $*

than you can call ImageJ with arguments, like:
        ImageJ /users/cloetens/ImageJ/*.gif
to start ImageJ and open all gif images in the directory
If you repeat the command, the same ImageJ version will open the  
successive images.

Peter


On Jun 20, 2006, at 6:28 PM, Johannes Schindelin wrote:

> Hi,
>
> On Tue, 20 Jun 2006, Andy Weller wrote:
>
>> I've just done an upgrade to 1.37i, but now I can't get ImageJ to
>> start?!
>>
>> My unchanged Linux command line is:
>>
>> java -Dplugins.dir=/home/ME/ImageJ -Xmx192m
>> -cp /opt/ImageJ/ij.jar:/usr/lib/jvm/java-1.5.0-sun/lib/tools.jar
>> ij.Image
>>
>>> From the terminal, the following error is given:
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError: ij/Image
>
> Try ij.ImageJ instead of ij.Image (note the missing "J").
>
> Hth,
> Dscho
>