mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 22:58:10 +08:00
jMAVSim: accept AdoptOpenJDK Java version
This should work with AdoptOpenJDK installed via brew:
brew tap adoptopenjdk/openjdk
brew cask install adoptopenjdk8
This commit is contained in:
@@ -60,7 +60,7 @@ fi
|
||||
if [ "$(uname)" == "Darwin" ]; then
|
||||
bold=$(tput bold)
|
||||
normal=$(tput sgr0)
|
||||
if ! /usr/libexec/java_home -V 2>&1 | grep --quiet "Java SE 8" ; then
|
||||
if ! /usr/libexec/java_home -V 2>&1 | grep --quiet "1.8\|Java SE 8" ; then
|
||||
echo "${bold}You need to have Java 8 installed for macOS, for more info, see:${normal}"
|
||||
echo "${bold}https://github.com/PX4/jMAVSim/issues/81${normal}"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user