简体   繁体   English

使用哪个java jdk?

[英]which java jdk to use?

I'm on the stage of learning java, and I have the following question. 我正处于学习Java的阶段,并且有以下问题。 On a new machine withj CPUi5, 8GB RAM and Win7 x64, which version of JDK to install? 在具有iCPUi5、8GB RAM和Win7 x64的新计算机上,要安装哪个版本的JDK? Do I install x86 or x64 version? 是否安装x86或x64版本? Also, when is about to install Eclipse, which version is recomended for my case? 另外,什么时候要安装Eclipse,我的情况推荐使用哪个版本? x86 or x64?\\ x86或x64?\\

After some weeks of practicing with Java, I plan to go to Adroid dev. 经过数周的Java练习之后,我打算去Adroid开发人员。

Many thanks! 非常感谢!

You can choose x86 in both cases. 在两种情况下都可以选择x86。 There is no need for x64 when doing Android development. 在进行Android开发时,无需使用x64。

See also Why should I use the 64-bit JDK over the 32-bit version? 另请参见为什么我应该在32位版本上使用64位JDK?

If you're running a 32 bit Operating System, a 64 bit JDK or eclipse simply won't work. 如果您运行的是32位操作系统,则64位JDK或Eclipse根本无法使用。

If your OS is 64bit then it does not really matter, but you have to choose the same for both eclipse and the JDK because eclipse uses native libraries and you cannot mix 32 bit and 64 bit code in the same process. 如果您的操作系统是64位的,那么这并不重要,但是eclipse和JDK都必须选择相同的操作系统,因为eclipse使用本机库,并且您不能在同一过程中混合使用32位和64位代码。

I'd recommend you to install x64 bit JDK and Eclipse x64. 我建议您安装x64位JDK和Eclipse x64。 Android is developed based on x64 JDK. Android是基于x64 JDK开发的。 This can be a reason to choose this version. 这可能是选择此版本的原因。

Just to remember you that you have to install only JDK 5 or JDK 6 versions. 仅记住您,您只需要安装JDK 5或JDK 6版本。 In other case you'll have problems with Android SDK. 在其他情况下,您会遇到Android SDK的问题。

You say you have Win7 x86, if that is really the case then you have no option and need to use a 32-bit JDK. 您说您拥有Win7 x86,如果确实如此,那么您别无选择,需要使用32位JDK。 If you have Win7 64 bit then you can use either 32 or 64 bit. 如果您具有Win7 64位,则可以使用32位或64位。 In my experience it doesn't matter which one you choose as long as you install the same Eclipse version. 以我的经验,只要安装相同的Eclipse版本,选择哪一个都没有关系。

您的操作系统是32位,因此安装32位Java和eclipse对于32位或64位来说不是问题。

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

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