Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

could not find tools.jar. please check that /library/internet plug-ins/javaappletplugin.plugin/contents/home contains a valid jdk installation.

/usr/libexec/java_home -V | grep jdk
Add this to your knowledgeMatching Java Virtual Machines (1):
1.8.0_272 (x86_64) "AdoptOpenJDK" - "AdoptOpenJDK 8" /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home

emacs ~/.zshrc
export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home
export PATH=$JAVA_HOME/bin:$PATH
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #find #check #valid #jdk
ADD COMMENT
Topic
Name
8+5 =