1.先到Sun网站下载对应版本的bin文件,并放到适当目录。
2.授权 chmod a=rwx ./j2sdk-1_4_2_04-linux-i586.bin
3.安装 ./j2sdk-1_4_2_04-linux-i586.bin
4.设定环境变量
export JAVA_HOME=/usr/java/j2sdk1.4.2_04
export PATH=$JAVA_HOME/bin:$PATH
Hi there... who can help with problem... so let me show you what i have:
this is ~/.bashrc file:
export JAVA_HOME=/usr/lib/jdk1.6.0_16
2.授权 chmod a=rwx ./j2sdk-1_4_2_04-linux-i586.bin
3.安装 ./j2sdk-1_4_2_04-linux-i586.bin
4.设定环境变量
export JAVA_HOME=/usr/java/j2sdk1.4.2_04
export PATH=$JAVA_HOME/bin:$PATH
Hi there... who can help with problem... so let me show you what i have:
this is ~/.bashrc file:
export JAVA_HOME=/usr/lib/jdk1.6.0_16