FelixSelter/JEnv-for-Windows

Using jenv change JAVA_HOME was successfully changed, but using java -version in other command line windows still shows the previous version that has not changed, but JAVA_HOME has changed.

xuliancheng563 opened this issue · 2 comments

image
image

in the first picture i use jenv changed the java version ,and checked version is right. in the second picture the JAVA_HOME has changed but java version dosnot changed. it was confusing,please giving me some suggestions.

@xuliancheng563 Does the version change when a new terminal window / session is opened?

我也出现了同样的问题,我的解决方案是通过管理员身份运行,在此窗口下执行命令更改成功
image

另外我删除了系统变量中的JAVA_HOME,不知道对此是否有影响
image

还有一个问题就是,更改版本后,java -version 命令真的很慢,不知道是什么原因