NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 970 - 3D viewer can not find jogl in java path
3D viewer can not find jogl in java path
Status: CONFIRMED
Product: Fiji
Classification: Unclassified
Component: Plugins
unspecified
Macintosh Mac OS
: P4 normal
Assigned To: ImageJ Bugs Mailing List
Depends on:
Blocks:
 
Reported: 2014-12-08 10:52 CST by Fidel Ramirez
Modified: 2014-12-08 11:03 CST
2 users (show)

See Also:

Description Fidel Ramirez 2014-12-08 10:52:02 CST
As a background:

I installed Fiji for Mac using the latest build. Running Fiji from Applications did not work because it could not load JVM 1.6 (I only found this by running Fiji command line, otherwise I would not get any error message or even a window, nothing).

Then I set my JAVA_HOME using /usr/libexec/java_home which in my case corresponds to jdk 1.8.

After this, Fiji runs properly except when trying to use the 3D viewer. Immediately I get the following error:

Exception in thread "J3D-Renderer-1" java.lang.UnsatisfiedLinkError: no jogl in java.library.path
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1857)
	at java.lang.Runtime.loadLibrary0(Runtime.java:870)
	at java.lang.System.loadLibrary(System.java:1119)
	at com.sun.opengl.impl.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:189)
	at com.sun.opengl.impl.NativeLibLoader.access$000(NativeLibLoader.java:49)
	at com.sun.opengl.impl.NativeLibLoader$DefaultAction.loadLibrary(NativeLibLoader.java:80)
	at com.sun.opengl.impl.NativeLibLoader.loadLibrary(NativeLibLoader.java:103)
	at com.sun.opengl.impl.NativeLibLoader.access$200(NativeLibLoader.java:49)
	at com.sun.opengl.impl.NativeLibLoader$1.run(NativeLibLoader.java:111)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.opengl.impl.NativeLibLoader.loadCore(NativeLibLoader.java:109)
	at com.sun.opengl.impl.macosx.MacOSXGLDrawableFactory.<clinit>(MacOSXGLDrawableFactory.java:53)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:260)
	at javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:108)
	at javax.media.j3d.JoglPipeline$QueryCanvas.<init>(JoglPipeline.java:9029)
	at javax.media.j3d.JoglPipeline.getBestConfiguration(JoglPipeline.java:8793)
	at javax.media.j3d.Renderer.doWork(Renderer.java:514)
	at javax.media.j3d.J3dThread.run(J3dThread.java:275)


Afterwards Fiji hangs.

I had updated the plugings including imageJ 3D suite.

Information about your version of Java:

  os.arch => x86_64
  os.name => Mac OS X
  os.version => 10.9.5
  java.version => 1.8.0_25
  java.vendor => Oracle Corporation
  java.runtime.name => Java(TM) SE Runtime Environment
  java.runtime.version => 1.8.0_25-b17
  java.vm.name => Java HotSpot(TM) 64-Bit Server VM
  java.vm.version => 25.25-b02
  java.vm.vendor => Oracle Corporation
  java.vm.info => mixed mode
  java.awt.graphicsenv => sun.awt.CGraphicsEnvironment
  java.specification.name => Java Platform API Specification
  java.specification.version => 1.8
  sun.cpu.endian => little
  sun.desktop => null
  file.separator => /

The up-to-date check says: REMIND_LATER

Information relevant to JAVA_HOME related problems:

  JAVA_HOME is set to: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre
  imagej.dir => /Applications/Fiji.app

Information about the version of each plugin:

Activated update sites:
ImageJ: http://update.imagej.net/ (last check:20141126221327)
Fiji: http://fiji.sc/update/ (last check:20141125171145)
3D ImageJ Suite: http://sites.imagej.net/Tboudier/ (last check:20141208085245)
Bio-Formats: http://sites.imagej.net/Bio-Formats/ (last check:20141111032637)
LOCI: http://sites.imagej.net/LOCI/ (last check:20140401205514)
NucleusJ: http://sites.imagej.net/PouletAxel/ (last check:20141101103602)
Tango: http://sites.imagej.net/Tango/ (last check:20141204174756)

Files not up-to-date:
  d3d48aeb (MODIFIED) 20141205121011 Contents/Info.plist
  dbcde867 (LOCAL_ONLY) 20080522040024 jars/gluegen-rt.jar
  9a9b947a (LOCAL_ONLY) 20080522040024 jars/jogl.jar
  f85574f3 (OBSOLETE_MODIFIED) 20141205113229 lib/Win64/setrEnv.ps1
Comment 1 Mark Hiner 2014-12-08 11:03:24 CST
Confirmed that this is a negative interaction between Java 8 and the 3D Viewer/Java3D.

The current workaround is to run with Java 6 or Java 7.

See http://imagej.net/FAQ#On_OS_X for instructions on running with alternate java versions.

To manually install Java 6 (e.g. on Yosemite), follow: http://apple.stackexchange.com/questions/153584/install-java-jre-6-next-to-jre-7-on-os-x-10-10-yosemite