3D Viewer is not working on Java1.7(Mac 10.10 Yosemite)

128 views
Skip to first unread message

Will Ouyang

unread,
Nov 20, 2014, 12:25:14 PM11/20/14
to icy-so...@googlegroups.com

Hi,

I am running Icy from terminal with this command:

/usr/libexec/java_home -v 1.7.0 --exec java -jar icy.jar

If I open a stack and shift to 3D Viewer, icy then crashed with the following output in the terminal:

Java(TM) SE Runtime Environment 1.7.0_71-b14 (64 bit)

Running on Mac OS X 10.10.1 (x86_64)

Number of processors : 24

System total memory : 32.0 GB

System available memory : 5533.4 MB

Max java memory : 7282.0 MB

VTK library successfully loaded...

Icy Version 1.5.4.2 started !

_NSJVMLoadLibrary: NSAddLibrary failed for /libjawt.dylib

JavaVM FATAL: lookup of function JAWT_GetAWT failed. Exit

But if I run it with java 1.6, 3D Viewer works fine:

/usr/libexec/java_home -v 1.6.0 --exec java -jar icy.jar

I looked for the crash log, but didn't find.

Any comment?

Stephane

unread,
Nov 27, 2014, 9:01:29 AM11/27/14
to icy-so...@googlegroups.com
Thanks for the report Will. We will investigate this issue but it looks like Oracle just removed the support for JAWT on OSX in java7 and java8 :
https://wikis.oracle.com/display/OpenJDK/Detailed+Cocoa-AWT+Status
https://github.com/caprica/vlcj/issues/205

Apparently VTK requires the JAWT library so i recommend to keep java6 if you need VTK :
http://public.kitware.com/pipermail/vtkusers/2014-April/083707.html

In future we may try to use OpenGL components for the VTK view (currently they do not seems to be 100% stable yet).

Cheers,

Ting Kwok

unread,
Dec 4, 2014, 10:12:25 AM12/4/14
to icy-so...@googlegroups.com
I updated to Yosemite and got Java 8 update. Is there a way (and is it safe) to go back to Java6 to allow Icy (and photoshop etc.) to work again?

Stephane

unread,
Dec 4, 2014, 10:21:06 AM12/4/14
to icy-so...@googlegroups.com
Hi,

Here is a description about how to revert back to Java 6 with newer OSX version :
http://icy.bioimageanalysis.org/faq#33

Note that it has not yet be t tested on Yosemite, hopefully it should be the same as Mountain Lion !

Best,

- Stephane

Ting Kwok

unread,
Dec 4, 2014, 10:57:57 AM12/4/14
to icy-so...@googlegroups.com
Thank you! All is working again!

Stephane

unread,
Dec 8, 2014, 11:47:38 AM12/8/14
to icy-so...@googlegroups.com
Glad to hear it :)
Reply all
Reply to author
Forward
0 new messages