Install JDK1.6 in Ubuntu

Source: Internet
Author: User
Ubuntu install JDK 1.61. download jdk-6u35-linux-i586.bin2 on the Oracle official website. modify the file to an executable, such as a chmod777jdk-6u35-linux-i586.bin3. execute this file, such as sudo. /jdk-6u35-linux-i586.bin4. after installation, you need to configure the system...
Install JDK 1.6 in Ubuntu. download jdk-6u35-linux-i586.bin 2. modify the file to an executable, such as chmod 777 jdk-6u35-linux-i586.bin 3. execute this file, such as sudo. jdk-6u35-linux-i586.bin 4. after installation, you must configure the system environment sudo gedit/etc/environment. My configuration is as follows (Green is the new content): www.2cto.com
Export JAVA_HOME =/home/wangking/Tool/dev/jdk1.6.0 _ 35 export CLASSPATH = ..: $ JAVA_HOME/lib: $ JAVA_HOME/jre/lib PATH = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin: /sbin:/bin:/usr/games: $ JAVA_HOME/bin "5. run the command to make the configuration take effect. Source/etc/environment 6. verify whether the installation is complete. use java-version or directly use javac to check whether the installation takes effect. 7. if it does not take effect yet, it is very likely that the default jdk, such as openjdk, already exists in ubuntu. to make the jdk installed by default, perform the following work. Www.2cto.com update-alternatives -- install/usr/bin/java/home/wangking/Tool/etc/jdk1.6.0 _ 35/bin/java 300update-alternatives -- install/home/wangking/Tool/etc /jdk1.6.0 _ 35/bin/javac 300 add the jdk we installed to the java menu through this step. Run update-alternatives -- config java.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.