一、Java Environment
1. sudo apt-get install sun-java6-jdk
2. sudo update-alternatives --config java
3. sudo vim /etc/environment
   CLASSPATH="/usr/lib/jvm/java-6-sun-1.6.0.00/lib"
   JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.00"

二、NetBeans
1. chmod +x netbeans-5_5-linux.bin
2. ./netbeans-5_5-linux.bin

三、Eclipse
1. sudo apt-get install eclipse
2. sudo update-java-alternatives -s java-6-sun
3. sudo vim /etc/jvm
   /usr/lib/jvm/java-6-sun-1.6.0.00 (top)
4. sudo vim /etc/eclipse/java_home
   /usr/lib/jvm/java-6-sun-1.6.0.00 (top)
































欢迎大家访问我的个人网站 萌萌的IT人