The eclipse IDE is one of the applications that you can write an application for your android OS. It has the ADT (android development tools) designed with a powerful application builder integrated environment . For eclipse to run on any system or OS, it needs you to obtain any java implementation eg openJDK/openJRE or oracle/sun java;
For the current implementation, the post will explain the steps to install eclipse on an openJDK and/or openJRE environments. You will first have to confirm if the packages in question are already installed in an Ubuntu environment. In a minimal install, however, openjdk and openjre are not generic packages bundled with linux OS which means we proceed with their installation from their sources.
#use the apt-get tool to automatically install the java environment from the sources.
sudo apt-get install openjdk-7-jdk
sudo apt-get install openjdk-7-jre
To install sun / oracle java6 runtime environment copy paste the command in a terminal
to install android Software development kit in a 64 bit machine you may need to install additional libraries ia32-libs
sudo apt-get install ia32-libs
Check if you have the correct version of open JDK/JRE java runtime environment installed by typing:
you will get outputs simmilar to:
Installing and configuring eclipse IDE source binary
These are the steps to have eclipse SDK source binary tools installed in your system,.
Create a folder within your home directory and change to that location to uncompress the binary source files.
mkdir -p /home/user/name of directory
cd /home/user/name of directory
Get the 64 bit source binary file from the eclipse website (choose the suitable source for your system). Alternatively you can decide to use the shorter route to retrieve the source files interacting the system with the download location in a terminal.
Untar the source binary within the selected location
sudo -s chmod a+x eclipse-SDK-3.7.2-linux-gtk-x86_64.tar.gz
sudo -s tar xvzf eclipse-SDK-3.7.2-linux-gtk-x86_64.tar.gz
You can create a symbolic link from your eclipse directory to the the desktop
sudo ln -s /home/user/name of directory/folder-with-contents-of-eclipse-extracted-binary
Installing the android SDK:
get the latest android tar ball and uncompress it in the location where you uncompressed the eclipse IDE binary sources you can opt to do a wget tool
cd /home/user/name of directory
untar the tar ball within the selected folder
And make sure that the uncompressed folder is writable and executable for all users that will access the directory.
sudo chmod -R a+x /home/user/name of directory/folder-with-contents-of-android-SDK-extracted-binary
You optionally can decide to include the path variable for android SDk tools in either of the files; .bashrc, .profile, or the etc/profile
Save and exit the file
- Installing the Eclipse Plugin – ADT Android (acordocoletivo.org)
- How to Install Oracle Java in Ubuntu (news.softpedia.com)
- Eclipse Android SDK component auto alignment (daniweb.com)
- Android’s Better Developer Tool Setup (news.dice.com)
- How to Build an Android App Part 1: Setting up Eclipse and Android SDK (kapaoo.com)
- Android Hello World Example – How to develop android apps (javacodegeeks.com)
- Can’t start Eclipse – Java was started but returned exit code=13 (stackoverflow.com)
- Day 1 set up android environment , Eclipse set up (slideshare.net)