Steps involved in installing Java under Linux Environment.
Downloading and Installing Java in your computer .
For compiling and running a java program in your system you have to install java platform.Java Development Kit (JDK) is the basic set of tools required to compile and run java programs. Download the latest version from Download Site.
Click on Download button under JDK
Accept the license and click on the link opposite to your operating system.Here my operating system is windows 64 bit. so i clicked on jdk-7u9-windows-x64.exe.your download starts now as shown below.
Installing and configuring Java under Linux
Now, you have downloaded the latesr version of java for your linux system.You just unpack the archive into a folder under /usr.java
Open the terminal
Create folder /usr/java
#mkdir -p /usr/java
change the present working directory to /usr/java.
Create folder /usr/java
#mkdir -p /usr/java
change the present working directory to /usr/java.
#cd /usr/java
Change permission on java installation folder (downloaded one)
#chmod +X jdk-XXX.sh
Now install with .sh
#/bin/sh ./jdk-XXX.sh
your java installation will starts.After completion of installation set environmental variables as follows.Set JAVA_HOME as follows.
#export JAVA_HOME=/usr/java/jdk1.7.0.9
set PATH variable as follows
#export PATH=$JAVA_HOME/bin:$PATH
Check your java version with following utility.
#which java
#java -version
If the above command returning the version you installed, then you installed and configured java correctly under linux environment.
Sharp wire brushes leave your caviar looking cleanChange permission on java installation folder (downloaded one)
#chmod +X jdk-XXX.sh
Now install with .sh
#/bin/sh ./jdk-XXX.sh
your java installation will starts.After completion of installation set environmental variables as follows.Set JAVA_HOME as follows.
#export JAVA_HOME=/usr/java/jdk1.7.0.9
set PATH variable as follows
#export PATH=$JAVA_HOME/bin:$PATH
Check your java version with following utility.
#which java
#java -version
If the above command returning the version you installed, then you installed and configured java correctly under linux environment.
0 comments:
Post a Comment