Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Need guidance on alternative JVMs for Apple OS X

Tags:

java

macos

jvm

Apple has deprecated their JVM and it may not be supported in future versions of OS X. I am not primarily a Java developer, but I do write Java applications now and then, and the primary application I work on uses Tomcat and Opal to provide a SOAP interface to command line executables written in C.

I keep seeing suggestions to simply use another JVM, but this seems seem ridiculously glib. At this point I believe an Oracle JVM that runs on OS X is purely a hypothetical. It seems like a reasonable solution, but given that Apple, Oracle, and Google seem to be in a 3-way pissing match, I fear it may be delayed for quite some time.

I keep getting pointed to the OpenJDK, but this seems to require building the JVM from source. That's fine for me personally, but not so great for my end users. I'm also pointed to the Soy Latte binary distribution built from the OpenJDK, but this is an X11 rather then a native implementation, and seems to be require a Java Research License.

Can somebody point me to other JVMs for OS X, or disabuse me of any misconceptions I have about OpenJDK and SoyLatte?

like image 506
Charles E. Grant Avatar asked Oct 24 '10 04:10

Charles E. Grant


2 Answers

There is current no other mature JVM's for OS X than the one Apple provides. There has been no need to create one as Apple already provided one and the OpenJDK has not yet received interest and work enough to provide a production level version for OS X.

All the code Apple wrote to make it work well with Aqua is not open, so it cannot be reused. All we have is the OpenJDK which only has Windows and X11 frontend, so either Apple can be asked to donate the Aqua code to OpenJDK or work has to start over to create a new Aqua frontend.

like image 188
Thorbjørn Ravn Andersen Avatar answered Nov 05 '22 14:11

Thorbjørn Ravn Andersen


We all need guidance on this one, man. All of us that are developing with Java on Macbooks are wondering what will happen.

So far, nobody has bothered to create a production-ready port of OpenJDK to OS X because Apple was taking care of that until now. SoyLatte is a port of X11 java to OS X. What we need is Java ported to Cocoa. This only affects Swing/AWT but nonetheless.

like image 3
Peter Knego Avatar answered Nov 05 '22 13:11

Peter Knego