Thursday, April 29, 2010

Install Eclipse for Ubuntu 10.04

http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.5.2-201002111343/eclipse-SDK-3.5.2-linux-gtk.tar.gz

Installing the Eclipse Classic.

Extract files and run the executable:

stan@stan-17-laptop:~/source/eclipse$ ./eclipse

/home/stan/workspace

Eclipse SDK

Version: 3.5.2
Build id: M20100211-1343

Installing Java 6 JDK in Ubuntu 10.4

The Java 6 SDK is required by Eclipse.
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"

sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk

// this only generates error now:  sudo update-java-alternatives -s java-6-sun

// there is no jvm file:  gksudo gedit /etc/jvm

Verify that java is installed and working:

stan@stan-17-laptop:~$ gedit HelloWorld.java
stan@stan-17-laptop:~$ javac HelloWorld.java
stan@stan-17-laptop:~$ java HelloWorld
Hello, World!

stan@stan-17-laptop:~$ cat HelloWorld.java
public class HelloWorld
{
  public static void main(String[] args)
  {
     System.out.println("Hello, World!");
   }

 
}

Installing ADT - Android Development Tools for Ubuntu 10.04

Install the Android SDK:

Add Android SDK tools to the PATH:

Add the following to the bottom of the ~/.bashrc file.

# Adding Andriod SDK tools to the path
PATH=$PATH:~/source/android-sdk-linux_86/tools
export PATH

Save and source the file in the shell.

$ source ~/.bashrc

ADT - Android Development Tools

The ADT plugin is used in Eclipse.

Adds integrated support for Android projects and tools within Eclipse.

Could not get './andriod' to start from inside Eclipse.  Had to start by hand.