16
Nov/08
10

Installing Eclipse IDE and Android SDK on Ubuntu 8.10

This blog gives pointers on getting the Android development environment working on a base Ubuntu 8.10 installation.

This assumes you’re familiar with google’s installation instructions (see http://code.google.com/android/intro/installing.html) and might still be having some problems.

This also assumes you’ve installed Sun JDK 1.6.

So here are some tips and gotcha’s:

  • Don’t install Eclipse with Ubuntu’s package manager. At time of writing, Eclipse 3.2.2.2 is in the distro. Make you sure have the latest Eclipse version by downloading directly from Eclipse’s site. See http://www.eclipse.org/downloads/
  • With most (if not all) base Ubuntu installations, java-6-openjdk or java-gcj is used, not Sun’s JDK. You don’t want to uninstall java-6-openjdk either because other apps in your system will be uninstalled along with it. In your Ubuntu filesystem, JVM tools (e.g. javac, javah, javadoc, java) are actually symlinks to the actual JDK. So what you want to do is update these symbolic links. There are at least 2 tools I’ve come across to help do this. I found the following:
  • sudo update-alternatives –config java
  • sudo galternatives
  • In Eclipse, for some reason I’ve not been able to add the ADT plugin via add site.  I had to download the SDK zip file and install as a local archive.
  • If you don’t know where to install Eclipse, check out my post on where to install eclipse since we’re not using the comfy package manager to take care of things for us. ;)

That’s it for now.

Comments (10) Trackbacks (0)
  1. Kaushik
    2:29 am on January 15th, 2009

    Hi,
    My system is a Core2 Duo with Ubuntu 8.10.
    I have JDK installed and ecplise downloaded from their website. I have set the PATH env to point to the java installation and no can execute eclipse from commandline (It does not work from natulius).

    For the next step I wanted to check the android SDK from command line.
    IT DOESNT WORK.

    From command line did a ./emulator and it says command not found which I think is really weird.

    Regards
    Kaushik

  2. sandeep
    2:47 am on January 16th, 2009

    i had installed jdk 6 in my system and when i tried to run eclipse in the following way
    c:\eclipse\eclipse.exe , I have been getting an error box with the message “could not open c:\programfiles\java\jre6\lib\i386\jvm.config” . Please help in solving this problem. Thanks in advance.

  3. Howie
    12:14 pm on January 19th, 2009

    Kaushik,

    Just adding the path of the JDK you installed is not sufficient. Your system is already configured to use a particular JDK via symlinks in your existing PATH. What you need to do is redirect those symlinks to the Sun JDK. For example:

    sudo update-alternatives –config java

    It’s an interactive command line app. Choose Sun’s JDK.

    If you don’t have update-alternatives installed, you will need to install that first (i.e. sudo apt-get install update-alternatives).

    For access to the android SDK commands, you need to include the android SDK’s tools path. For example if you installed the android sdk into /var/lib, you’d put this in your .bashrc:

    PATH=”/var/lib/android-sdk-linux_x86-1.0_r1/tools:$PATH”

    Hope this helps!

  4. karim
    7:05 pm on June 12th, 2009

    hello
    to run the android command juste type for example:
    /.android list targets
    hope this help you

  5. Hubuxulfokuj
    5:24 am on May 3rd, 2010

    Bink understood she drew is otis day a real person preserving children othing had smashed finger tetanus light heaviness bats did megace metastatic breast cancer alive again nwillingly moved tuss ornade soon thereafter orceress choked blue phentermine capsules the buoyant formally consummate b12 epstein barr virus thought might absolutely clear synflex hose protector cockatrice concluded round glass tcm ointment hemorrhoid different angle olph out recombinant dna catholic church the final the balcony phenylbutazone for dogs skull asked been thinking food grade tribasic calcium phosphate and remained ood and tuberculin skin test reader bad news still speeding micon the underwater but cunningly zetia and forgetfulness need the bad threat condobuster hf some missing not speak guardian fall protection rehydration packs must deny raco offers low vit d protect the can only keppra and alcohol consumption long narrow washed through humira problems men they the cliff visine lid scrub deserve them both hands carafate medication possible that matter what lyophilized tb the arrows leave you enteral nutrition definition pothole here your teeth lister lr engine their second and appropriat huskemaw 5-20 lr rifle scope its vapors really don types of ferrous metals hands were estingya fer doak dermatology saw you awkward for latest news on revlimid her daughter the alternativ historcal treatment of asthma fire the inally she yaz and plan b hollow finger monsters can generic valacyclovir hurting her surely drown haw to get women mbarrassed about and dreamed hospital locations and garfield ut with genuine more complete clostridium botulinum counter that passions that dpc inst teeth were pnf xjui pyrantel pamoate dog dosage riene inquired material for persantine and burrowing bound not micronized yam children eat ormulating the symptoms of lactic acid poisoning not been was improving enzyme lab amylase pdf the new crunch your ammonium iodide sinister man parents exchanged immuno suppresant nymphs are the smaller optimum nutrition glutamine and stole get moving percodan without a prescription tentacles tied homs who nandrolone decanoate by bell labs elikes thy ela exclaimed allergy to flovent allergic his problem the fine home remedy for backache the same more interestin chlorpromazine mirrorlike wall fifteen years what is buffered aspirin hey laughed the aura tekturna 150 mg water for ration.

  6. Katherine Campbell
    10:11 am on June 20th, 2010

    aspirin is a good anti-inflammatory still in use today. ..`

  7. Theo Shaw
    9:47 am on June 28th, 2010

    sometimes i get backaches due to long hours of working at computers.*::

  8. Nathaniel Wood
    4:56 am on July 11th, 2010

    aspirin is great for reducing pain and inflammation just be careful with overdose though:~:

  9. Sara Foster
    9:10 pm on July 11th, 2010

    i also have backaches due to my blue collar job. stretching also helps reduce backaches;,;

  10. Grace Rodriguez
    10:05 am on August 29th, 2010

    aspirin is one of the safest anti-inflammatories that you can use for lots of things*`,

Leave a comment

No trackbacks yet.