Skip to content

Commit 67ab43e

Browse files
committed
[bugfix] macOS .app: accept Java 21+ for JVM discovery
The appbundler-maven-plugin writes <jvmRequired> verbatim into the .app bundle's Info.plist as JVMVersion. Apple's JavaAppLauncher uses that key (and the convention "<major>+") to gate which installed JVM it will use to launch the app. With <jvmRequired>21</jvmRequired> the launcher's plist contains JVMVersion = 21 (a strict match), so a host with only Java 22 / 23 / 24 / … installed would be rejected even though eXist runs fine on those. Switch to "21+" — matches the established Apple convention (1.6+, 1.7+, 1.8+, …) and lines up with how Zulu / Temurin / Liberica / Apple JDKs all install their major-version directories. Verified the plugin propagates the literal: /usr/libexec/PlistBuddy -c "Print :JVMVersion" Contents/Info.plist # 21+ Follow-up to @duncdrum review on PR #6434 (#6434 (comment)).
1 parent 644b798 commit 67ab43e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

exist-distribution/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@
923923
<identifier>org.exist.start.Main</identifier>
924924
<mainClassName>org.exist.start.Main</mainClassName>
925925
<executableName>eXist-JavaAppLauncher</executableName>
926-
<jvmRequired>21</jvmRequired>
926+
<jvmRequired>21+</jvmRequired>
927927
<minimumSystemVersion>10.9</minimumSystemVersion>
928928
<version>${project.version}</version>
929929
<shortVersion>${project.version}</shortVersion>

0 commit comments

Comments
 (0)