Cycling74 / max-mxj

Java support for Max by Cycling '74
MIT License
17 stars 11 forks source link

JRE versus JDK in OSX #54

Open pslack opened 7 years ago

pslack commented 7 years ago

JRE on OSX does not work with the new MXJ , users must install the larger JDK for OSX for MXJ to work properly at run time.

kristofb commented 6 years ago

For that, we need to change getJavaJli to search in "%s/lib/jli/libjli.dylib"

But, I think now we needs to check if JDK jli exists, if not check if JRE jli exists, in that order. Then return the appropriate file path from getJavaJli

And we probably also need to modify getHome: 1- call "/usr/libexec/java_home" call to check JDK, 2- in case of failure, check presence of "/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java" to check JRE

I'll test it.