How to install jdk in linux

Asked By 0 points N/A Posted on -
qa-featured

I have a problem,I want to run java development kit in my linux operating system.The problem is that I don't know how to compile program in linux as is there in windows

SHARE
Answered By 0 points N/A #161137

How to install jdk in linux

qa-featured

First, Download the required jdk-7u<version>-linux-x64.tar.gz from https://docs.oracle.com/javase/7/docs/webnotes/install/linux/linux-jdk.html site. If you are trying to install on a normal Linux other than rpm based Linux then you need to follow the below steps.

Step 1-> Go the directory where you have downloaded.
Step 2-> provide this command to untar the tar ball
  tar –zvxf jdk-7u<version>-linux-x64.tar.gz
Step 3->Delete the jdk-7u<version>-linux-x64.tar.gz file (for saving the disk space)

That’s it you have installed the jdk in the current directory.

Installing on RPM based Linux :
 
Once downloading is completed.

Step 1-> Go the directory where RPM is placed.
Step 2-> execute the below command
  rpm –ivh jdk-7u<version>-linux-i586.rpm

That’s it installation is done. No need to reboot

 

Related Questions