Posted by
lechristophe on
Sep 20, 2015; 7:30am
URL: http://imagej.273.s1.nabble.com/Running-Fiji-with-Java-8-on-OSX-Yosemite-tp5014372.html
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_XSo 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