简体   繁体   English

在Windows 64位平台上安装32位JRE

[英]Install a 32-bit JRE on Windows 64-bit platform

I have a Windows 2008 64-bit server and I have to install a 32-bit JRE, because my Java application uses 32-bit DLLs using JNI. 我有一台Windows 2008 64位服务器,并且必须安装32位JRE,因为我的Java应用程序使用通过JNI的32位DLL。

Unfortunately the java.exe is installed to C:\\Windows\\SysWow64 and when I start a console window or a batch file the installed java.exe is not found. 不幸的是, java.exe已安装到C:\\Windows\\SysWow64并且当我启动控制台窗口或批处理文件时,找不到安装的java.exe (Because cmd.exe is a 64-bit application and sees the 64-bit version of the system directory which has no java.exe ) (因为cmd.exe是64位应用程序,并且看到没有java.exe的系统目录的64位版本)

How can I make the installed java.exe available to batch files and the command line without to much messing around with the system configuration, causing other problems or preventing future updates to the JRE? 如何使已安装的java.exe可用于批处理文件和命令行,而又不会引起系统配置的太多混乱,从而导致其他问题或防止将来对JRE进行更新?

Don't rely on the java.exe that's in a Windows system directory; 不要依赖Windows系统目录中的java.exe add the bin directory of your Java runtime environment to the PATH environment variable (if that's not too much "messing around with the system configuration"). 将Java运行时环境的bin目录添加到PATH环境变量中(如果不是太多的“与系统配置打交道”)。

Known issues when you install a 32 -bit JRE on a 64- bit Windows architecture machine: 在64位Windows体系结构计算机上安装32位JRE时的已知问题:

  1. Online Installation and Java Update features are not applicable to 64-bit architecture 联机安装和Java Update功能不适用于64位体系结构
  2. The public JRE installed with the 32-bit JRE is not registered. 未注册随32位JRE一起安装的公共JRE。 You must set the PATH environment variable to point to JAVA_HOME \\bin to register the JRE 您必须将PATH环境变量设置为指向JAVA_HOME \\ bin才能注册JRE。

http://www.oracle.com/technetwork/java/javase/install-windows-64-142952.html http://www.oracle.com/technetwork/java/javase/install-windows-64-142952.html

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

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