?????.???????
????jdk??ubuntu????32λ???
??????.???JDK
????1.??jdk?????
????<span style="font-family: ????; font-size: 18pt;">cd usr
????sudo mkdir javajdk
????</span>
????2.???mv???????cp?????
????<span style="font-family: ????; font-size: 18pt;">//????????
????cd home/hxsyl/DeskTop
????sudo mv /usr/javajdk
????</span>
????3.???
????<span style="font-family: ????; font-size: 18pt;">//?л???root??
????//?????????????
????sudo passwd
????//????????????????????????????????????
????//??jdk????
????./jdk-6u30-linux-i586.bin
????//??????????????
????chmod 777 jdk-6u30-linux-i586.bin
????</span>
????3.????????????
????<span style="font-family: ????; font-size: 18pt;">sudo gedit /etc/profile
????</span>
????????????????
????<span style="font-family: ????; font-size: 18pt;"># /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
????# and Bourne compatible shells (bash(1)?? ksh(1)?? ash(1)?? ...).
????#set java environment
????export JAVA_HOME=/usr/javajdk/jdk1.6.0_45
????export JRE_HOME=/usr/local/java/jdk1.6.0_45/jre
????export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
????export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$JAVA_HOME:$PATH
????</span>
?????????????????????????????????????java????????????????/etc/profile?????????????????????Ч????????????????????????Ч???????
????<span style="font-family: ????; font-size: 18pt;">source /etc/profile
????</span>
???????????????????win??????jdk?????????????????????.......???
????<span style="font-family: ????; font-size: 18pt;">//?????£???????????????????????????ó??
????java -version
????</span>
???????java -version??????
????The program 'java' can be found in the following packages:
????* default-jre
????* gcj-4.8-jre-headless
????* openjdk-7-jre-headless
????* gcj-4.6-jre-headless
????* openjdk-6-jre-headless
????Try: apt-get install <selected package>
?????????????????????java???????????????????????δ??????а????jdk?????????????????jdk??OK??
????<span style="font-family: ????; font-size: 18pt;">sudo update-alternatives --install /usr/bin/java java /usr/javajdk/jdk1.6.0_30/bin/java 300
????sudo update-alternatives --install /usr/bin/javac javac /usr/javajdk/jdk1.6.0_30/bin/javac 300
????sudo update-alternatives --config java
????</span>