[英]I installed JDK and added path variable but still i am facing -> zsh : command not found: jdk in macOS
enter image description here在此处输入图像描述
I tried giving this path variable but didn't seem to work我试着给这个路径变量,但似乎没有用
export $JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.0.8.jdk/Contents/Home
Then I tried this, and seem to work然后我试了这个,似乎有效
export JAVA_HOME=$(/usr/libexec/java_home)
but still facing jdk command not found issue但仍然面临 jdk command not found 问题
Basically, I m trying to install chromedriver using基本上,我正在尝试使用安装 chromedriver
sudo apt install chromium-chromedriver
but I'm facing this error但我正面临这个错误
jdk
is not a command. jdk
不是命令。 The basic commands you probably want are javac
to compile your code and java
to run it.您可能需要的基本命令是用于编译代码的
javac
和用于运行代码的java
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.