Pycharm总是提示:[debug] [BaseDriver] Event 'newSessionSt[debug] [W3C] Encountered...

Mac系统,Pycharm总是提示:[debug] �[35m[BaseDriver]�[39m Event 'newSessionSt[debug] �[35m[W3C]�[39m Encountered internal error running command: Error: JAVA_HOME is not set currently. Please set JAVA_HOME.

1.但是JDK已经安装并配置了JAVA_HOME,如下

JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home

PATH=$JAVA_HOME/bin:$PATH:.

CLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:.

export JAVA_HOME

export PATH

export CLASSPATH

终端命令: java -version       

结果:java version "1.8.0_211"

命令:echo $JAVA_HOME,结果是空的。


求大神解答!

你可能感兴趣的:(Pycharm总是提示:[debug] [BaseDriver] Event 'newSessionSt[debug] [W3C] Encountered...)