简体   繁体   中英

which java jdk to use?

I'm on the stage of learning java, and I have the following question. On a new machine withj CPUi5, 8GB RAM and Win7 x64, which version of JDK to install? Do I install x86 or x64 version? Also, when is about to install Eclipse, which version is recomended for my case? x86 or x64?\\

After some weeks of practicing with Java, I plan to go to Adroid dev.

Many thanks!

You can choose x86 in both cases. There is no need for x64 when doing Android development.

See also Why should I use the 64-bit JDK over the 32-bit version?

If you're running a 32 bit Operating System, a 64 bit JDK or eclipse simply won't work.

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.

I'd recommend you to install x64 bit JDK and Eclipse x64. Android is developed based on 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. In other case you'll have problems with 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. If you have Win7 64 bit then you can use either 32 or 64 bit. In my experience it doesn't matter which one you choose as long as you install the same Eclipse version.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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