Opened 12 months ago
Last modified 12 months ago
#68450 new defect
AppleCommander @1.8.0: missing required Java version
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | Cc: | ||
Port: | AppleCommander |
Description
AppleCommander fails to build if Java is not installed:
---> Building AppleCommander DEBUG: Executing org.macports.build (AppleCommander) DEBUG: Environment: CC_PRINT_OPTIONS='YES' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_emulators_AppleCommander/AppleCommander/work/.CC_PRINT_OPTIONS' CPATH='/opt/local/include' DEVELOPER_DIR='/Library/Developer/CommandLineTools' GRADLE_USER_HOME='/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_emulators_AppleCommander/AppleCommander/work/gradle' JAVA_HOME='' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='13.0' SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk' Executing: cd "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_emulators_AppleCommander/AppleCommander/work/AppleCommander" && ./gradlew assemble DEBUG: system: cd "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_emulators_AppleCommander/AppleCommander/work/AppleCommander" && ./gradlew assemble The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java.
It succeeds if, for example, the openjdk11 port is installed.
The port already includes the java 1.0 portgroup. What else must I do to get this port to use a MacPorts Java, if a system Java is not already installed?
Change History (1)
comment:1 Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)
Summary: | AppleCommander @1.6.0: The operation couldn’t be completed. Unable to locate a Java Runtime. → AppleCommander @1.8.0: missing required Java version |
---|
Note: See
TracTickets for help on using
tickets.
I updated AppleCommander to 1.8.0 which now requires Java 11 or later so I added this to the Portfile:
Then the build failed with:
This led me to think that what I specified above was unintentionally an exact version requirement. While I think it's weird that the java portgroup installed a version different from the one I said I needed, and then complained about it, I changed it, hopefully, to allow the use of Java 11 or later:
But this then failed to build with:
Evidently I have no idea how to use the java portgroup.