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

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

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

JonNathan
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.

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).

Thanks,

Jon Marsh
Reply | Threaded
Open this post in threaded view
|

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

Rasband, Wayne (NIH/NIMH) [E]
> 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
Reply | Threaded
Open this post in threaded view
|

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

JonNathan
Thanks so much -- I deleted the JRE folder and it worked just as you said!

Jon