This repository has been archived by the owner on Feb 4, 2023. It is now read-only.
Open
Description
I'm submitting a…
- bug reportfeature requestother
Short description of the issue/suggestion:
The current behaviour seems to be to prefer a JRE installed in /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/
over a JDK installed in /Library/Java/JavaVirtualMachines/
Why is this the preferred order of preference?
Activity
tofi86 commentedon Aug 7, 2018
I assume you are using the latest version of the stub?
There is no real precedence of JRE over JDK or vice-versa.
This is from the
syslog
from one of my apps:The script first adds all the JDK's found to an array of available JVM's (https://github.com/tofi86/universalJavaApplicationStub/blob/master/src/universalJavaApplicationStub#L534-L540).
Then, if available, the Apple or Oracle JRE's are added to the same array (https://github.com/tofi86/universalJavaApplicationStub/blob/master/src/universalJavaApplicationStub#L544-L552).
In case you specified any JVM min/max version we delete every non-matching JVM from the array.
In any case after that, the JVM array is beeing sorted by JVM version number (https://github.com/tofi86/universalJavaApplicationStub/blob/master/src/universalJavaApplicationStub#L650-L653) and the first executable JVM is then selected for execution (https://github.com/tofi86/universalJavaApplicationStub/blob/master/src/universalJavaApplicationStub#L656-L674).
This can either be a JRE or JDK version, no preference of one over the other.
Preferring JRE over JDK or vice-versa is currently a "missing feature" as stated in the readme (https://github.com/tofi86/universalJavaApplicationStub#missing-features).
Hope that helps.