[英]64-bit java acting like 32-bit Java after installing Java 8 Update 20 - Weird
I tried to install Aptana Studio 3
on my laptop, but after installation, it gave me the error "Could not load the JNI shared library ... "
when I tried to run it. 我尝试在笔记本电脑上安装Aptana Studio 3
,但安装后,当我尝试运行它时,出现错误"Could not load the JNI shared library ... "
。 A google search told me that it needed 32-bit Java
installation. 谷歌搜索告诉我它需要32-bit Java
安装。 Since my installation is 64-bit, I was sure it would not work. 由于我的安装是64位的,因此我确定它不会起作用。 I did not try again. 我没有再试一次。 Just then a pop-up came that there was a new update of java available for my system, Java 8 Update 20
. 就在这时,弹出窗口显示我的系统有一个新的Java更新,即Java 8 Update 20
。 Previously I was on Java 8 update 11
. 以前,我使用Java 8 update 11
。 I did the update and then a restart. 我做了更新,然后重新启动。 After that, I tried running the Aptana Studio 3 once more, and to my surprise it was working perfectly. 之后,我再次尝试运行Aptana Studio 3,令我惊讶的是它运行良好。
But then I came onto a doubt and tried to run Eclipse
(mine is 64-bit) and I was shown the problem "Java was started and returned with exit code=13"
, which a google search told me that I was trying to run 64-bit eclipse on a 32-bit Java installation. 但是后来我开始怀疑并尝试运行Eclipse
(我的操作系统是64位),并向我显示了"Java was started and returned with exit code=13"
的问题"Java was started and returned with exit code=13"
,谷歌搜索告诉我我正在尝试运行32位Java安装上的64位Eclipse。 So I did a "java -version"
and it is now showing me I have a 32-bit Java installation. 所以我做了一个"java -version"
,现在显示我有一个32位Java安装。
All these happened in 10 minutes. 所有这些都在10分钟内发生。 I mean I was using Eclipse this morning before the update. 我的意思是今天早上在更新之前我正在使用Eclipse。
I never knew this could even happen. 我什至不知道这可能发生。 I regularly use Eclipse and I know I have a 64-bit Java
installed, and the PATH is also set correctly. 我经常使用Eclipse,并且知道安装了64-bit Java
,并且PATH的设置也正确。
I have no idea what is going on, but I need my Eclipse to be up and running, I am in the middle of my android application project, and now I have no clue. 我不知道发生了什么,但是我需要启动并运行Eclipse,我处于我的android应用程序项目的中间,现在我一无所知。 Please help! 请帮忙!
OS : Windows 7 Ultimate Service Pack 1 64-bit 操作系统:Windows 7 Ultimate Service Pack 1 64位
I am attaching two screenshots. 我要附上两个屏幕截图。
Modify eclipse.ini
and set vm
property to your preferred JVM: 修改eclipse.ini
并将vm
属性设置为您首选的JVM:
-vm
C:\Program Files\Java\jdk1.7.0_51\bin\javaw.exe
This makes eclipse run on a JVM which is independent of what is specified by JAVA_HOME
or PATH
. 这使得eclipse在JVM上运行,而该JVM与JAVA_HOME
或PATH
指定的内容无关。 See this for more details. 请参阅此了解更多详情。
You had installed both types of Java (32-bit and 64-bit) (Java 8 Update 11). 您已经安装了两种类型的Java(32位和64位)(Java 8 Update 11)。
The Java version updated was only the 32-bit version (I cannot tell you why). 更新的Java版本仅为32位版本(我无法告诉您原因)。
On start Java always uses the most current version which is 32-bit in your case. 在启动时,Java始终使用最新版本,在您的情况下为32位。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.