[英]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时的已知问题:
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.