Ubuntu 10.10 32-bit and Appcelerator – a how to – Part two

Part Two – installing the Java SDK
updated February 8th 2012

Let just get right into it! open up your terminal session and lets continue!

  1. mkdir -p ~/android/environment/system – this will make both the environment and system folders with one command (I love -p!)
  2. sudo mount -a && cd ~/Downloads && ls – make sure everything that should be there is actually there
  3. wget http://download.oracle.com/otn-pub/java/jdk/7u2-b13/jdk-7u2-linux-i586.tar.gz – 32-bit Linux java SDK (includes the SE/JRE version and bypasses clicking the I agree button to their terms…)
  4. sudo mkdir /opt/java && sudo tar xvfz jdk-7u2-linux-x64.tar.gz -C /opt/java/
    – remember to use [tab] after typing jdk so you can use this even if the version gets updated
  5. sudo apt-get install galternatives
  6. sudo rm /opt/java/*.bin – this will remove almost 200MB from your VM HDD
  7. and restart the VM again
  8. after the VM comes back up mount your shares again and take a second snapshot, we’ll name this one Java jre & jdk installed, in the comments note that you have also added galternatives

We will finish up part two here, the next section is where a little mistake will have you reverting to this last snapshot, so you will be happy we made it (I did not make the second snapshot the first time through and while all the way at the end of part three I had to revert back to the end of part one and redo this section again).

  1. part one
  2. part three
  3. part four

About

4 thoughts on “Ubuntu 10.10 32-bit and Appcelerator – a how to – Part two

    1. I have just updated my Java to 1.7.0_02 and found it to be very easy after following this method of installation. all that was needed was the download of the new version, and changing the symbolic links. It took less than 1 minute.

Leave a Reply

1 visitors online now
0 guests, 1 bots, 0 members
Max visitors today: 4 at 07:45 am UTC
This month: 7 at 12-01-2020 01:40 am UTC
This year: 138 at 11-21-2020 09:11 pm UTC
All time: 1100 at 08-08-2011 08:11 pm UTC