有没有人可以给我一套在ubuntu下安装java的方案?找了好多的方案,都不知道从哪开始装,我现在的系统上可能已经装了一些组件,因为我用ubuntu7.04桌面的,上次在升组件的时候就装上,所以现在都不知道从哪开始 装java啦~有心的朋友帮帮我哦~先说明一下,我的应用程序中的系统工具里面有一个sun java 6 console .在系统的首选项中还有sun java 6 plugin control panel和sun java 6 policl Tool
[ 本帖最后由 linux289 于 2007-8-25 07:46 编辑 ]
linux289 于 2007-08-25 10:08:21发表:
Thanks~~~不过你能不能用中文呀!难道你是老外啊????Are you 老外????
sun_java 于 2007-08-25 08:23:52发表:
I guess you have installed sun-java6-jre successfully.
Firstly, you can hit the command java -version and javac -version to check your installed java version.If you want to remove sun-java6.you can use the following command:
sudo apt-get remove sun-java5-jre
sudo apt-get remove sun-java5-jdk
Secondly, your java environment path has been added to your system's emvironment variable.
Thirdly, if you add your JAVA_HOME,you can use:
export JAVA_HOME=/usr/lib/jvm/java-6-sun
export PATH=$PATH:$JAVA_HOME/bin
Fourthly, you can use eclipse for linux to study eclipse java programming