Closed Abu-Abdullah closed 3 years ago
Hi,
first of all, you should make sure that your Info.plist
XML file is well-formed:
<dict>
<key>JAVA_HOME</key>
<string>Contents/PlugIns/jdk.jdk</string>
<dict>
What is meant to be a closing tag isn't a closing tag!
Then, second point is regarding the JAVA_HOME value:
Is the path Contents/PlugIns/jdk.jdk
really the path to the JAVA_HOME directory? Does this folder contain the bin/
directory with the java
binary?
When I tried to bundle an oracle JRE once, this was the path I had to use: https://github.com/tofi86/universalJavaApplicationStub/blob/master/README.md#bundle-a-jrejdk-with-your-app
Hi. I'm testing universalJavaApplicationStub on Big Sur.
I made sure my XML is welled formed in Info.plist:
`<key>LSEnvironment</key>
<dict>
<key>JAVA_HOME</key>
<string>Contents/Resources/Frameworks/amazon-corretto-8.jdk/Contents/Home</string>
</dict>`
But still it doesn't seem that JAVA_HOME environment variable is set as it says 'didn't find JAVA_HOME'. Here's the console sys log output:
default 10:43:48.606618-0800 syslog [6323][universalJavaApplicationStub] [StubDir] /Applications/MyApp.app/Contents/MacOS default 10:43:48.618982-0800 syslog [6323][MyApp] [PlistStyle] Apple default 10:43:48.662591-0800 syslog [6323][MyApp] [JavaRequirement] JVM minimum version: 1.8 default 10:43:48.665935-0800 syslog [6323][MyApp] [JavaRequirement] JVM maximum version: default 10:43:48.678139-0800 syslog [6323][MyApp] [Language] en_CA default 10:43:48.687225-0800 syslog [6323][MyApp] [JavaSearch] Checking for $JAVA_HOME ... default 10:43:48.690421-0800 syslog [6323][MyApp] [JavaSearch] ... didn't found JAVA_HOME default 10:43:48.693876-0800 syslog [6323][MyApp] [JavaSearch] Searching for JavaVirtualMachines on the system ... default 10:43:48.709511-0800 syslog [6323][MyApp] [JavaSearch] ... found 2 JVM's default 10:43:48.723711-0800 syslog [6323][MyApp] [JavaSearch] ... found JVM: 1.8.0_272:/Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home/bin/java default 10:43:48.727072-0800 syslog [6323][MyApp] [JavaSearch] ... found JVM: 1.8.0_272:/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin/java
@lqlau I improved the logging for JAVA_HOME detection with #100. Maybe this helps.
Closing this as the original author didn't respond to my questions. @Abu-Abdullah please feel free to reopen this issue if needed.
I'm submitting a…
Short description of the issue/suggestion:
Setting JAVA_HOME is not working using LSEnvironment and it gives the following errors:
Steps to reproduce the issue/enhancement: Info.plist
I'm bundling bellsoft jre for macos bellsoft-jre14.0.1+8-macos-amd64.zip
Please tell us about your environment: