How To use the Java under Linux ?let's study.
First step : you need the jdk packet .where download?as following URL:
and i down the
jdk-7u17-linux-i586.tar.gz
second step: change one directory ,(as /home/(my system name)/java/jdk)uncompress the packet ,order :
-
tar zxvf jdk-7u17-linux-i586.tar.gz
then ,you will see a dirctory:
jdk1.7.0_17
Third step : configure the environment.Order:
and write the code as follows:
-
#JAVA runtime environment
-
export JAVA_HOME=/home/ubuntu/java/jdk/jdk1.7.0_17
-
export PATH=$JAVA_HOME/bin:$PATH
ok ,save,
then ,you can call the console ,input;
to test.it's proof thar you are right if you see the result as follows.
阅读(1642) | 评论(0) | 转发(0) |