3
votes

I want to develop Android apps on the Mac, but the information on http://developer.android.com/sdk/index.html is confusing. Apart from the android-sdk_r06-mac_86.zip , does the Mac need JDK or Eclipse ?

The JDK installation page gives a link to Apple site for downloading "Java Developer Preview 10M3222+9M3222", which is a pre-release version. I am not sure whether this is what I need. Also somewhere says Mac has already got Java SDK by default and no need to install extra, which makes more confusing.

Do I need to install the "Eclipse+ ADT Plugin for Eclipse" as well?


I just did a check, and not sure whether the following means I do not need to install any extra JDK. Is the Mac's JDK 1.6.0_20 the equivalent of the other platforms' JDK 6?

$ javac -version

javac 1.6.0_20

$ which javac

/usr/bin/javac

$ ls -la /System/Library/Frameworks/JavaVM.framework/Versions/

total 64

.... drwxr-xr-x 9 root wheel 306 26 May 11:34 A

lrwxr-xr-x 1 root wheel 1 26 May 11:34 Current -> A

lrwxr-xr-x 1 root wheel 3 26 May 11:34 CurrentJDK -> 1.6

1

1 Answers

3
votes

You don't need to install any JDK on Mac OS, there is one installed by default.

you can run the javac command to check that the JDK is present.

Usually it's in /System/Library/Frameworks/JavaVM.Framework/Versions/Current/

You still need to install other tools such as android SDK, Eclipse, and its plugins.