Login  Register

Re: 3D Viewer Exception

Posted by ctrueden on Jul 28, 2015; 1:38pm
URL: http://imagej.273.s1.nabble.com/3D-Viewer-Exception-tp5013775p5013780.html

Hi Ard,

The 3D Viewer does not currently work with Java 8 on OS X.

We are going to fix that (at least on the ImageJ2 side) later this summer;
see:

   http://fiji.sc/bugzilla/show_bug.cgi?id=1095

The workaround for the moment is to use Java 6:
* http://imagej.net/FAQ#How_do_I_set_up_Java_6_on_OS_X.3F
* http://imagej.net/FAQ#On_OS_X

Regards,
Curtis

On Tue, Jul 28, 2015 at 3:49 AM, A. Jonker <[hidden email]> wrote:

> Trying to generate a 3D drawn scene using 3D Tools plugin and subsequently
> using the 3D Viewer plugin
> I get
>
> version = 1.5
> Exception in thread "J3D-Renderer-1" java.lang.NoClassDefFoundError:
> apple/awt/ComponentModel
>         at
> com.sun.opengl.impl.JAWT_DrawingSurface.GetDrawingSurfaceInfo0(Native
> Method)
>         at
> com.sun.opengl.impl.JAWT_DrawingSurface.GetDrawingSurfaceInfo(JAWT_DrawingSurface.java:56)
>         at
> com.sun.opengl.impl.macosx.MacOSXOnscreenGLDrawable$1.run(MacOSXOnscreenGLDrawable.java:165)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at
> com.sun.opengl.impl.macosx.MacOSXOnscreenGLDrawable.lockSurface(MacOSXOnscreenGLDrawable.java:163)
>         at
> com.sun.opengl.impl.macosx.MacOSXOnscreenGLContext.makeCurrentImpl(MacOSXOnscreenGLContext.java:57)
>         at
> com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:134)
>         at
> javax.media.j3d.JoglPipeline$QueryCanvas.doQuery(JoglPipeline.java:9030)
>         at
> javax.media.j3d.JoglPipeline.getBestConfiguration(JoglPipeline.java:8778)
>         at javax.media.j3d.Renderer.doWork(Renderer.java:495)
>         at javax.media.j3d.J3dThread.run(J3dThread.java:256)
> Caused by: java.lang.ClassNotFoundException: apple.awt.ComponentModel
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>         ... 11 more
>
> (on MacOS 10.10.4, system preferences Java PrefPane opens Java Control
> Panel, version Java 8 Update 51)
> I've learnt that this probably is caused by calling an obsolete version of
> Java3D and that I should use Java3D 1.6.0
> (source:
> http://stackoverflow.com/questions/26378249/how-to-get-java3d-to-work-in-intellij-on-os-x
> )
>
> The only Java3D-like documents I could find were located in FIJI folder
> and don't seem to get updated with the FIJI updater.
> /Applications/Fiji.app/java/macosx-java3d/Home/lib/ext/j3dutils.jar and
> /Applications/Fiji.app/java/macosx-java3d/Home/lib/ext/j3dcore.jar
>
> I'm afraid pulling framworks from a running system might do more harm than
> good.
> What is the safest upgrade to get the 3D Viewer plugin working again?
>
> Ard
> ________________________________
>
> AMC Disclaimer : http://www.amc.nl/disclaimer
>
> ________________________________
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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