Install JDK & Netbeans on Linux/Ubuntu
Installation process of JDK & Netbeans on Linux/Ubuntu
At first download JDK-7u**-linux-i586.tar.gz from Oracle JDK Download Page & Netbeans-V**-linux.sh from Netbeans Download Page.Keep the download files on desktop. First install JDK and then Netbeans. Let's see the installation process.
Installation process of JDK
1. Go to Dash-Home & search Terminal or Run Terminal by pressing CTRL + ALT + T. Type the below command to extract JDK into Home Folder.
tar -xvf ~/Desktop/jdk-7u4-linux-i586.tar.gz
N.B. - put the name of your downloaded file after ***Desktop/ . e.g- if your downloaded version of JDK is jdk-7u11-linux-i586.tar.gz then your command will be- tar -xvf ~/Desktop/jdk-7u11-linux-i586.tar.gz
2. Now goto the Home Folder directory. Check the extracted JDK folder name. Take the 1st portion before underscore "_" to perform the next step.
Here is the command below-
sudo mkdir -p /usr/lib/jvm/jdk1.7.0
Remember the directory Name
You may asked for root password. Type your password & hit Enter.
3. Type following command in Terminal to move files.
sudo mv jdk1.7.0_04/* /usr/lib/jvm/jdk1.7.0/
4. Type below commands one after one to complete the installation process of JDK.
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0/bin/javac" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.7.0/bin/javaws" 1
5. After successfully installed JDK, check the version by the following command.
java -version
Installation process of Netbeans
1. Type the below command to change the directory to Desktop.
cd Desktop
2. Change the directory permission with below command.
sudo chmod +x netbeans-*
If you're asking for root password, enter the password & hit Enter.
3. Type the below command & the Netbeans installation interface will be appeared. Do next>next>next :D to complete the installation of Netbeans.
Thats it! :)
Previous published on - vInfoSpot.com
Comments
Post a Comment