which java jdk to use? - android

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.

Your operating system is 32 bit so install 32 bit java and eclipse is not a problem for 32 bit or 64 bit.

Related

Is the any way to install cmake for Android studio on a 32bit system to allow C++ support?

Latest version of AS and windows 7 32bit.
After some research it seems as though cmake for AS only runs on 64bit systems, if correct I assume there is no way I can just download cmake for 32bit and place it in the appropriate location in the Android SDK, or is there any other work around, I am pretty sure I will need to install windows 64bit, but thought I'd ask.
This is so I can have C++/NDK support in AS.
Yes you are correct, AS only supports 64 bit OS's to build c and c++ with cmake

Android Studio Windows 64bit JDK 32 bit

I downloaded android-studio-bundle-135.1740770-windows.exe and installed android studio. But when I am trying to open, it's throwing an error like "Please install a 64-bit JDK"
How to use Android Studio with Java 32 bit?
Went through the above link but downloading that version didn't fix my issue.
And most of my applications depend on java 32 bit version and i can't install 64 bit jdk.
Is there any fix to this or I am doing anything wrong. I have the class path set correctly in the environment variables with JAVA_HOME property.

Android Studio Fails To Launch On Windows 7 x64

I installed Android Studio but the below error is being displayed on start-up .
I had multiple versions of Java JDK installed on my system. i.e JDK 1.6 (64 bit), JDK 1.8 (both 64 bit and 32 bit).
I had also set the java_home path to (E:\Program Files\Java\jdk1.8.0_31\) 64 bit but some how android studio is showing error as it is using JVM path as jdk_1.6.0_12\jre (shown in image )
Any help is appreciated on how to make Android start up without uninstalling any JDK version.
Just change your path in this order: 64bit java path first and later 32bit java path.
Finally have to end up with unistalling java 1.6

How to run Eclipse ADT on Windows8?

I would like to install eclipse + ADT on Windows 8.
The system requirements on Android Website do not list Windows 8 as supported OS. Is it possible to do so?
Also, I see this Error.
Thanks
I'm not sure if you mean would you be able to install ADT + eclipse on Windows 8 ?? but according to the system requirements mentioned on Android Website it stops at Windows 7. I do not see a problem however with the installation. It should work. Just make sure you have the correct/updated JVM.
Operating Systems
Windows XP (32-bit), Vista (32- or 64-bit), or Windows 7 (32- or 64-bit)
Mac OS X 10.5.8 or later (x86 only)
Linux (tested on Ubuntu Linux, Lucid Lynx)
GNU C Library (glibc) 2.7 or later is required.
On Ubuntu Linux, version 8.04 or later is required.
64-bit distributions must be capable of running 32-bit applications.
You have Java Problems. I think its related to 32 & 64 bit. See here for a possible duplicate:
Failed to load the JNI shared Library (JDK)

ADT Bundle for Mac: Eclipse cannot be started

I downloaded Android Developer Tools Bundle for Mac from here. The System Requirements section says it needs "Mac OS X 10.5.8 or later (x86 only)". I tried to start Eclipse.app in adt-bundle-mac-x86_64/eclipse, but I got the following error message:
You can't open the application Eclipse.app because it is not supported
on this type of Mac.
I have a Macbook with 32-bit Intel Core Duo CPU and Mac OS X 10.6.8 and JRE 1.6.0_39. Why can't I start Eclipse from the ADT bundle? If I install Eclipse Classic 4.2.1 32-bit from here, it works.
http://developer.android.com/sdk/index.html#download
Go there and make sure you choose 32 bit for the download. That should resolve your issue.
This:
I have a Macbook with 32-bit
and this:
I tried to start Eclipse.app in adt-bundle-mac-x86_64/eclipse
do not line up. It would appear that you are trying to use a 64-bit Eclipse on a 32-bit environment, based on your description.
There does not appear to be a 32-bit OS X version of the ADT bundle, so you may need to install the SDK Tools and Eclipse separately rather than use the bundle.

Categories

Resources