Login  Register

Re: ImageJ crashing

Posted by ctrueden on Jul 26, 2006; 6:48pm
URL: http://imagej.273.s1.nabble.com/ImageJ-crashing-tp3702009p3702012.html

Hi,

There is a great article on switching Ubuntu over to the Sun JDK here:
http://www.docuverse.com/blog/donpark/EntryViewPage.aspx?guid=f171bafc-abce-4d2e-a18b-3aba4ad32c52

Doing is this way is nice because it keeps all your packaging dependencies
in place, with no need to throw anything into /usr/local.

-Curtis

On 7/26/06, Andy Weller <[hidden email]> wrote:

>
> Thanks Albert,
>
> This seems to be the problem - I have now pointed my launcher to Sun's
> Java instead of GCJ.
>
> /usr/lib/jvm/java-1.5.0-sun/bin/java -Dplugins.dir=/home/aweller/ImageJ
> -Xmx128m
> -cp /opt/ImageJ/ij.jar:/usr/lib/jvm/java-1.5.0-sun/lib/tools.jar
> ij.ImageJ
>
> Andy
>
> On Wed, 2006-07-26 at 07:46 +0200, Albert Cardona wrote:
> > This is an Ubuntu "problem": by default the 'java'
> >  command runs GCJ, the GNU java. If you want your 'java' command to run
> Sun's
> > 1.5.0 java, you have several options:
> >
> > - set the full path in your 'run' script: for instance, this is mine:
> > /usr/local/jdk1.5.0_07/bin/java -Xmx600m -classpath
> > ij.jar:postgresql-8.1-405.jdbc3.jar:/usr/local/jdk1.5.0_07/lib/tools.jar
> > ij.ImageJ
> >
> > - add the /usr/local/jdk1.5.0_07/bin to your classpath, before anything
> else, in
> > your .bashrc :
> >
> > export PATH=/usr/local/jdk1.5.0_07/bin:$PATH
> >
> > - make an alias in your bashrc for 'java' :
> >
> > alias java='/usr/local/jdk1.5.0_07/bin/java'
> >
> >
> > Be sure also to set your JAVA_HOME to the proper folder in your .bashrc:
> >
> > export JAVA_HOME=/usr/local/j2sdk1.4.2_12
> >
> > In this case I have it pointing to the 1.4.2 so anything I compile will
> be
> > compatible with 1.4.2 and onward.
> >
> > A final note: ImageJ runs faster and better with java 1.6.0 beta (as far
> as I
> > can tell).
> >
> > Albert
>