Hmm, got to write some notes. Do not use Open JDK: download Java 6 binary. http://www.printandweb.ca/2012/10/manually-install-oracle-jdk-6-for.html Manually Install Oracle JDK 6 for Ubuntu 12.10 Tags: support, Ubuntu These are my notes for 12.04 updated for Ubuntu 12.10. The process I used for 12.04 works the same for 12.10. Most installation notes refer to the no longer available sun-java6-jdk or an individual ppm, but these notes are for manually installing the downloaded files from Oracle. I'm referring to JDK6, but you could substitute JDK7 if that's what you need. Download Java SE 6 JDK for Linux x86 self-extracting binary At the time of writing, the file I'm using is jdk-6u37-linux-i586.bin, but the filename will change as updates are released. From the download folder, make the file executable chmod a+x jdk-6u37-linux-i586.bin Apparently there isn't a jvm folder anymore, so create one. sudo mkdir /usr/lib/jvm Move the file to the jvm folder sudo mv jdk-6u37-linux-i586.bin /usr/lib/jvm/ Change to the jvm folder and run the self-extracting binary cd /usr/lib/jvm sudo ./jdk-6u37-linux-i586.bin Everything will be extracted to a new jdk1.6.0_37 folder and you can delete the .bin file now. Make symbolic links to the new java binary. sudo ln -s -b /usr/lib/jvm/jdk1.6.0_37/jre/bin/java /etc/alternatives/java sudo ln -s -b /usr/lib/jvm/jdk1.6.0_37/jre/bin/java /usr/bin/java Double-check the version java -version Now you can easily update and switch between JDK versions directly from the source. Get the SDK: I just got the bundle @ http://developer.android.com/sdk/index.html http://developer.android.com/tools/projects/projects-cmdline.html android create project --target 1 --name MyAndroidApp --path ./MyAndroidAppProject --activity MyAndroidAppActivity --package com.example.myandroid ant debug android avd adb -install <apk> |
Blog >