找到 安装好的路径
/usr/java/jdk1.6.0_21/bin
export导出PATH
vi ~/.bashrc
1 # .bashrc
2
3 # User specific aliases and functions
4
5 alias rm='rm -i'
6 alias cp='cp -i'
7 alias mv='mv -i'
8 export PATH=${PATH}:/usr/java/jdk1.6.0_21/bin/
9 # Source global definitions
10 if [ -f /etc/bashrc ]; then
11 . /etc/bashrc
12 fi
~