http://imagej.273.s1.nabble.com/Running-Fiji-with-Java-8-on-OSX-Yosemite-tp5014372p5014374.html
> does not pick it up. Are you using Fiji or ImageJ?
I am using Fiji.
> Christophe
>
> Le 20 sept. 2015 11:17 AM, "Aryeh Weiss" <
[hidden email]
> <mailto:
[hidden email]>> a écrit :
>
> Here is what worked for me.
>
> I downloaded the jdk from
>
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html> and installed it (ie I ran the installer and let it install
> itself). It was put in to
> /Library/Java/JavaVirtualMachines
> the current version is
> jdk1.8.0_60.jdk
>
> I erased the other JDK (1.8.0_51), and then Fiji found the new
> Java automatically upon startup.
> There is probably a better way to do it, but this worked for me.
> When I had 1.8.0_51, File>New>System Clipboard failed. Upgrading
> to 1.8.0_60 solved the problem.
>
> --aryeh
>
> On 9/20/15 10:30 AM, Christophe Leterrier wrote:
>
> Hi,
>
> Today I want to try to run Fiji under Java 8 with OSX Yosemite
> (it's a
> lovely Sunday so why not?), seeing that a lot of effort was
> made to make it
> run better. However I ailed to do so. I used the instructions
> there:
>
http://imagej.net/Frequently_Asked_Questions#How_do_I_run_ImageJ_on_Yosemite.3F>
> - I started with a "clean" system with just Apple Java 6
> "system" install
> (the one I was using for Fiji so far, displaying Java 1.6.0_65
> when
> launched)
> - Installed a fresh Fiji from Fiji.sc website in my
> Applications folder,
> updated it
> - Installed the Java 8 jre, and jdk just to be sure
> - Even after reboot, when I launch Fiji it uses Java 6
> (displays Java
> 1.6.0_65).
>
> I then tried to directly point to the Java 8 install by
> following these
> instructions:
>
http://fiji.sc/Frequently_Asked_Questions#On_OS_X>
> So in the Terminal I type (because I think there is an error
> in the Fiji
> wiki, it should say Fiji.app not ImageJ.app in the command):
>
> /Applications/Fiji.app/Contents/MacOS/ImageJ-macosx --java-home \
> '/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home'
>
> But I get the following error:
>
> Mac-60f81dc34d74:~ christo$
> /Applications/Fiji.app/Contents/MacOS/ImageJ-macosx --java-home
> '/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home'
>
> Could not load Java library
> '/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/jre/../Libraries/libserver.dylib':
> dlopen(/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/jre/../Libraries/libserver.dylib,
> 1): image not found
>
> Warning: falling back to System JVM
> >From the mailing messages it seems that people have trouble
> using Java 6
> when they have Java 8 installed, not the other way around ! Is
> this a bug
> (I will file a report if so) or is there something wrong with
> my system or
> the way I try to do things?
>
> Thanks for your help,
>
> Christophe
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
>
>