64位Java无法正常工作,32位无效

时间:2014-07-23 02:11:12

标签: java

安装了 32和64位版本的Java(JDK和JRE的版本7和版本8 [安装它两次无用,但无论如何安装它]。)。

当我在所有64位安装程序(\ Program Files)中执行java.exe时,它会给我类似的东西#34; Java SE已经停止工作"并且不会做任何事情。虽然,所有32位安装都可以完美运行(\ Program Files(x86))

我安装了64位Windows 8.1

http://i.stack.imgur.com/IMPa0.png

这并不会让我感到烦恼,但我喜欢利用我所有的RAM,而不仅仅是其中的一部分。

感谢您提前回复。

3 个答案:

答案 0 :(得分:0)

您需要正确设置路径才能运行java二进制文件。

来自JDK Installation for Microsoft Windows

Updating the PATH Environment Variable

If you do not set the PATH variable, you need to specify the full path to the executable file every time you run it, such as:

C:\> "C:\Program Files\Java\jdk1.8.0\bin\javac" MyClass.java

It is useful to set the PATH variable permanently so it will persist after rebooting.

To set the PATH variable permanently, add the full path of the jdk1.8.0\bin directory to the PATH variable. Typically, this full path looks something like C:\Program Files\Java\jdk1.8.0\bin. Set the PATH variable as follows on Microsoft Windows:

    Click Start, then Control Panel, then System.    
    Click Advanced, then Environment Variables.

    Add the location of the bin folder of the JDK installation to the PATH variable in System Variables. The following is a typical value for the PATH variable:

    C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.8.0\bin

Note:

    The PATH environment variable is a series of directories separated by semicolons (;) and is not case-sensitive. Microsoft Windows looks for programs in the PATH directories in order, from left to right.    
    You should only have one bin directory for a JDK in the path at a time. Those following the first instance are ignored.    
    If you are not sure where to add the JDK path, append it.    
    The new path takes effect in each new command window you open after setting the PATH variable.

您需要正确设置 classpath 以便javac进行编译。

请参阅Setting the class path

答案 1 :(得分:0)

安装JDK 32位版本的最新java并设置 JAVA_HOME PATH 变量,如下所示。

$timeout(appendText);

function appendText() {
   var myEl = ...

希望这会有所帮助

答案 2 :(得分:-1)

需要同时安装32位和64位JRE,然后IE才会检测到Java Plug-in Helper是兼容的。

请参阅Java 7 Update 55发行说明:

https://www.java.com/en/download/faq/release7_changes.xml

“对于64位Windows有特殊情况-EPM(增强保护模式)需要同时安装32位和64位插件。请确保同时安装了32位和64位JRE ,否则IE会发出警告,但Java插件仍将在EPM下运行。”