Login  Register

Re: "class not found" error when compiling Java 8 plugins in El Capitan

Posted by Rasband, Wayne (NIH/NIMH) [E] on Oct 08, 2015; 11:08pm
URL: http://imagej.273.s1.nabble.com/class-not-found-error-when-compiling-Java-8-plugins-in-El-Capitan-tp5014582p5014585.html

> On Oct 8, 2015, at 12:00 PM, JonNathan <[hidden email]> wrote:
>
> I just upgraded my Mac to OS 10.11, and then upgraded ImageJ to the
> "experimental" Java 8 version available on the download page.  When trying
> to compile a new plugin, I get a ClassNotFoundException error.  Any
> suggestions?  I'm running ImageJ 1.50c.

This bug is fixed in the latest ImageJ distribution for OS X, which is bundled with Java 1.8.0_60 and is no longer labeled “experimental".

> On a related note, is there a way to point ImageJ's "run and compile"
> command to a different version of the Java compiler?  I have the latest
> version 1.8.0_60-b27 of the JDK installed on my Mac and would like to use it
> if possible (once everything is working properly).

ImageJ will use the installed version of Java if you delete or rename the ImageJ/jre folder.

-wayne

> --
> View this message in context: http://imagej.1557.x6.nabble.com/class-not-found-error-when-compiling-Java-8-plugins-in-El-Capitan-tp5014582.html
> Sent from the ImageJ mailing list archive at Nabble.com.



--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html