OpenJDK 64-Bit Server VM (build 14.0.1+7, mixed mode, sharing) OpenJDK Runtime Environment (build 14.0.1+7) MacOS will ask you to enter a privileged accnt + Password again, do that, & choose "Open"/"Allow", then you should see output like this: $($(/usr/libexec/java_home -version 14.0)/bin/java -version) If you want to avoid above long command-set, then run below shorter command: in Terminal, run this long command-set:Įcho '#!/bin/bash' > ~/TestJava.sh echo "export JAVA_HOME=\"\$(/usr/libexec/java_home -version 14.0)\" " > ~/TestJava.sh echo "export PATH=\"\$JAVA_HOME/bin:\$PATH\" " > ~/TestJava.sh echo "java -version " > ~/TestJava.sh chmod +x ~/TestJava.sh ~/TestJava.sh. If output contains+shows : "/Library/Java/JavaVirtualMachines/jdk-*.jdk/Contents/Home", where * will actually show the Java version number, then its good.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |