Chinaunix首页 | 论坛 | 博客
  • 博客访问: 38930
  • 博文数量: 10
  • 博客积分: 236
  • 博客等级: 二等列兵
  • 技术积分: 110
  • 用 户 组: 普通用户
  • 注册时间: 2012-11-20 21:15
文章分类
文章存档

2013年(3)

2012年(7)

我的朋友

分类: Java

2013-03-30 17:59:53

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 :


点击(此处)折叠或打开

  1. tar zxvf jdk-7u17-linux-i586.tar.gz



then ,you will see a dirctory:jdk1.7.0_17


Third step : configure the environment.Order:


点击(此处)折叠或打开

  1. cd ~
  2. gedit .bashrc



and write the code as follows:

点击(此处)折叠或打开

  1. #JAVA runtime environment
  2. export JAVA_HOME=/home/ubuntu/java/jdk/jdk1.7.0_17
  3. export PATH=$JAVA_HOME/bin:$PATH
ok ,save,

then ,you can call the console ,input;

点击(此处)折叠或打开

  1. java

  2. javac

  3. jar

  4. ....

to test.it's proof thar you are right if you see the result as follows.





阅读(1642) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~