Dear all,
I'm having a little difficulty launching ImageJ from the command line after a Linux reinstall. I run the following: java -Dplugins.dir=/home/aweller/ImageJ/plugins -Xmx128m -cp /opt/ImageJ/ij.jar:/usr/lib/jvm/java-1.4.2-sun/lib/tools.jar ij.ImageJ but my plugins folder cannot be found - any ideas?! It is set to its correct location. I have also tried "-Dplugins.dir=/home/aweller". I am also having a little trouble compiling plugins - I get the message below: ----- Note: sun.tools.javac.Main has been deprecated. error: Invalid class file format in /usr/lib/jvm/java-1.5.0-sun-1.5.0_07/jre/lib/rt.jar(java/lang/Object.class). The major.minor version '49.0' is too recent for this tool to understand. /home/aweller/ImageJ/plugins/Threshold/Multi_OtsuThreshold.java:0: Class java.lang.Object not found in interface ij.plugin.filter.PlugInFilter. // ^ /home/aweller/ImageJ/plugins/Threshold/Multi_OtsuThreshold.java:16: Superclass java.lang.Object of class Multi_OtsuThreshold not found. public class Multi_OtsuThreshold implements PlugInFilter ^ 3 errors, 1 warning ----- Is Java 1.5 too new for ImageJ? Hope somebody can give me some pointers? Thanks, Andy |
OK, solved - please excuse my ignorance! For those that are interested,
the -Dplugins.dir needs to be set as following: "-Dplugins.dir=/home/aweller/ImageJ" Also, the pointer to tools.jar in the command line launcher needs to be the same as the Java -version you are using - ie, 1.5.0 Cheers, Andy On Fri, 2006-06-09 at 14:06 +0200, Andy Weller wrote: > Dear all, > > I'm having a little difficulty launching ImageJ from the command line > after a Linux reinstall. I run the following: > > java -Dplugins.dir=/home/aweller/ImageJ/plugins -Xmx128m > -cp /opt/ImageJ/ij.jar:/usr/lib/jvm/java-1.4.2-sun/lib/tools.jar > ij.ImageJ > > but my plugins folder cannot be found - any ideas?! It is set to its > correct location. I have also tried "-Dplugins.dir=/home/aweller". > > I am also having a little trouble compiling plugins - I get the message > below: > > ----- > Note: sun.tools.javac.Main has been deprecated. > error: Invalid class file format > in /usr/lib/jvm/java-1.5.0-sun-1.5.0_07/jre/lib/rt.jar(java/lang/Object.class). The major.minor version '49.0' is too recent for this tool to understand. > /home/aweller/ImageJ/plugins/Threshold/Multi_OtsuThreshold.java:0: Class > java.lang.Object not found in interface ij.plugin.filter.PlugInFilter. > // > ^ > /home/aweller/ImageJ/plugins/Threshold/Multi_OtsuThreshold.java:16: > Superclass java.lang.Object of class Multi_OtsuThreshold not found. > public class Multi_OtsuThreshold implements PlugInFilter > ^ > 3 errors, 1 warning > ----- > > Is Java 1.5 too new for ImageJ? > > Hope somebody can give me some pointers? > > Thanks, Andy |
In reply to this post by Weller Andrew Francis
On Friday 09 June 2006 13:06, Andy Weller wrote:
> Dear all, > java -Dplugins.dir=/home/aweller/ImageJ/plugins -Xmx128m > -cp /opt/ImageJ/ij.jar:/usr/lib/jvm/java-1.4.2-sun/lib/tools.jar > ij.ImageJ > I am also having a little trouble compiling plugins - I get the message > below: > Is Java 1.5 too new for ImageJ? No, it is fine (even 1.6 beta is fine) but you have the command line pointing to 1.4.2 and perhaps you also have installed 1.5 somewhere else. Modify the command line to look for 1.5. BTW, I suggest to compile the plugins from within IJ. My run file looks like this: cd ~/ImageJ ./jdk1.6.0/bin/java -Xmx900m -cp ij.jar:jimi.jar:/home/gabriel/ImageJ/jdk1.6.0/lib/tools.jar ij.ImageJ $1 and I have installed 1.6 SDK in the ImageJ directory Cheers, G. |
Free forum by Nabble | Edit this page |