I had Java SE (version 8) installed on my computer (Windows 10).
(我在计算机(Windows 10)上安装了Java SE(版本8)。)
Now, I have downloaded version 13. I have also added the path (现在,我下载了版本13。我还添加了路径)
C:\Program Files\Java\jdk-13.0.1\bin
(C:\ Program Files \ Java \ jdk-13.0.1 \ bin)
in Environment Variables -> System Variables -> Path
(在环境变量->系统变量->路径中)
But still when I write
(但是当我写的时候)
java -version
(Java版本)
on cmd, I get the path of the older version.
(在cmd上,我得到了旧版本的路径。)
java version "1.8.0_231"
(Java版本“ 1.8.0_231”)
Java(TM) SE Runtime Environment (build 1.8.0_231-b11)
(Java(TM)SE运行时环境(内部版本1.8.0_231-b11))
Java HotSpot(TM) 64-Bit Server VM (build 25.231-b11, mixed mode)
(Java HotSpot(TM)64位服务器VM(内部版本25.231-b11,混合模式))
Upon writing
(写作时)
where java
(哪里java)
I got the following result
(我得到以下结果)
C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.exe
(C:\ Program Files(x86)\ Common Files \ Oracle \ Java \ javapath \ java.exe)
C:\ProgramData\Oracle\Java\javapath\java.exe
(C:\ ProgramData \ Oracle \ Java \ javapath \ java.exe)
C:\Program Files\Java\jdk-13.0.1\bin\java.exe
(C:\ Program Files \ Java \ jdk-13.0.1 \ bin \ java.exe)
In the environment variables ->
(在环境变量中->)
I get the following relevant paths:
(我得到以下相关路径:)
C:\ProgramData\Oracle\Java\javapath
(C:\ ProgramData \ Oracle \ Java \ javapath)
C:\Program Files\Java\jdk-13.0.1\bin
(C:\ Program Files \ Java \ jdk-13.0.1 \ bin)
Note: doesn't have the path of Java 8 as I deleted it.
(注意:我删除Java 8时没有路径。)
Interestingly, I am still able to run the Java code.
(有趣的是,我仍然能够运行Java代码。)
I am confused now..
(我现在很困惑。)
ask by Ricky translate from so