Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Monday, July 21, 2014

Eclipse installation on Linux platforms


1. Download the appropiate Eclipse IDE for Java EE Developers version for your architecture (32 or 64 bits) from http://www.eclipse.org/downloads/.
     For this explanation, I suppose the file is downloaded to "Downloads" directory of the "username" home directory ("/home/username/Downloads/").
2. As a root user, extract the archived files from downloaded file in step 1.
 $ su
Password: <Type the root password>
# cd /usr/local/
# mv /home/username/Downloads/eclipse-jee-luna-R-linux-gtk-<version>.tar.gz .
# tar -zxvf eclipse-jee-luna-R-linux-gtk-<version>.tar.gz
     In this step, Eclipse Luna was installed on "/usr/local/" directory. Now you can remove the downloaded file:
# rm eclipse-jee-luna-R-linux-gtk-<version>.tar.gz
3. In order to run Eclipse from the graphic interface, create a link to Eclipse in your desktop. As normal user, enter in a terminal:
$ cd /home/username/Desktop
$ ln -s /usr/local/eclipse/eclipse Eclipse



Android SDK installation on Linux platforms

1- Installing Android SDK

1-a. Download the stand-alone Android SDK tools from http://developer.android.com/sdk/index.html#download, by clicking on "GET THE SDK FOR AN EXISTING IDE" and accepting the terms and conditions of Android.
1-b. Unpack ".tgz" file in the desired location, as normal user.
$ mkdir /home/username/Development
$ cd /home/username/Development
$ mv /home/username/Downloads/android-sdk_<version>-linux.tgz .
$ tar -zxvf android-sdk_<version>-linux.tgz
     Android SDK files have been unpacked in a "android-sdk-linux_x86" directory. Now, you can remove the downloaded file:
$ rm android-sdk_<version>-linux.tgz

2- Getting the latest Android SDK tools

2-a. Start the Android SDK Manager.
$ cd /home/username/Development/android-sdk-linux_x86/tools/
$ ./android
2-b. In the Android SDK Manager window, select the latest SDK tools:
     In Tools directory select: - Android SDK Tools
                                           - Android SDK Paltform-tools
                                           - Android SDK Build-tools (the highest version)
     In Android first directory (latest version) select: - SDK Platform
                                                                            - ARM EABI v7a System Image
     In Extras directory select: - Android Support Repository
                                            - Android Support Library
                                            - Google Repository
                                            - Google Play services
2-c. Click "Install 7 packages".
2-d. In the next window, accept the license agreement for each package, and click "Install".

Saturday, July 19, 2014

Successful installation of Java Development Kit on Linux platforms

This procedure install Java SE Development Kit in openSUSE Linux, but it can be applied for any other Linux distribution. (Please, consult your distribution documentation.)

1. Download the Java SE Development Kit from http://www.oracle.com/technetwork/java/javase/downloads/index.html. Select the tarball (".tar.gz" file extension) for the appropiate architecture (32 or 64 bits).
     For this explanation, I suppose the file is downloaded to "Downloads" directory of the "username" home directory ("/home/username/Downloads/").

2. As a root user, move the downloaded file to the installation directory and unpack the tarball.
$ su
Password: <Type the root password>
# mkdir /usr/java/
# cd /usr/java/
# mv /home/username/Downloads/jdk-<version>-linux-<arch>.tar.gz .
# tar -zxvf jdk-<version>-linux-<arch>.tar.gz
     In this step, Java was unpacked on "/usr/java/" directory. Now, you can remove the downloaded file:
# rm jdk-<version>-linux-<arch>.tar.gz
3. Create a symbolic link to the JDK installation directory.
# ln -s /usr/java/jdk<version> default
4. Set the "JAVA_HOME" environment variable.
# cd /etc/profile.d/
# cat >> java.sh
export JAVA_HOME=/usr/java/default
<CTRL + C>
#
5. Set the JDK tools in "PATH" environment variable.
# cd /etc/
# cat >> bash.bashrc.local
PATH=$JAVA_HOME/bin:$PATH
export PATH
<CTRL + C>
#