简体   繁体   English

Win 7上的32位Java

[英]32-bit java on win 7

How do I make a 32-bit java 7 as the default in a 64-bit Windows 7? 如何在64位Windows 7中将32位Java 7设置为默认值?
When I type in java at the command prompt - it seems to look to a 64-bit java(which I have uninstalled) by default: 当我在命令提示符下键入Java时-默认情况下,它看起来似乎是64位Java(已卸载):

could not open "c:\program files\java\jre7\lib\amd64\jvm.cfg'

I am not able to locate how or why is it looking for this specific path. 我无法找到寻找此特定路径的方式或原因。
The JAVA_HOME and PATH contain no reference to it. JAVA_HOME和PATH不包含对它的引用。

How do I make it search for the 32-bit JDK that has been referred to in JAVA_HOME instead? 如何使其搜索JAVA_HOME中已引用的32位JDK?

Please follow this tutorial for setting the PATH and JAVA_HOME on Windows 7. 请按照本教程在Windows 7上设置PATHJAVA_HOME

From this site : 从此站点

NOTES: The JDK's "bin" directory should be listed before "c:\\windows\\system32" and "c:\\windows" in the PATH. 注意:JDK的“ bin”目录应在PATH中的“ c:\\ windows \\ system32”和“ c:\\ windows”之前列出。 This is because some older Windows systems provide their own Java runtime (which is often out-dated) in these directories (try search for "java.exe" in your computer!). 这是因为某些较旧的Windows系统在这些目录中提供了自己的Java运行时(通常已过时)(请尝试在您的计算机中搜索“ java.exe”!)。

Please update your PATH system ( not user) variable to include the location of your 32 bit Java 7 JDK. 请更新您的PATH系统( 而非用户)变量,以包括32位Java 7 JDK的位置。 Both PATH and JAVA_HOME should be system variables. PATHJAVA_HOME都应为系统变量。

It sounds like Windows may still be picking up on your 64 bit Java 7. 听起来Windows可能仍在使用64位Java 7。

Update in enviromental variables JAVA_HOME as C:/program files/java/jdk version. 将环境变量JAVA_HOME更新为C:/程序文件/ java / jdk版本。 And JRE_HOME as C:/Program files/java/jdk version/jre. 并且JRE_HOME为C:/ Program Files / java / jdk version / jre。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM