Windows中的JRE安装目录 [英] JRE installation directory in Windows
本文介绍了Windows中的JRE安装目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有任何命令检查活动(因为机器可以安装多个JRE)JRE安装目录在Windows下。对于linux,相应的命令是
Is there any command to check the active (since the machine can have more than 1 JRE installed) JRE installation directory under Windows. For linux, the corresponding command is
which java
是否有任何Windows等价物?
Is there any Windows equivalent ?
推荐答案
其中java
适用于我列出所有java exe但 java -verbose
告诉你哪个 rt.jar
被使用,因此jre(完整路径):
where java
works for me to list all java exe but java -verbose
tells you which rt.jar
is used and thus which jre (full path):
[Opened C:\Program Files\Java\jre6\lib\rt.jar]
...
编辑:win7和java:
win7 and java:
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
这篇关于Windows中的JRE安装目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文