Posted by
Albert Cardona on
Jul 26, 2006; 6:46am
URL: http://imagej.273.s1.nabble.com/ImageJ-crashing-tp3702009p3702010.html
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
--------------------------------------------------------------------
This message was sent using Webmail@INI:
https://webmail.ini.ethz.ch