Configure JDK under fedora16

Source: Internet
Author: User

1, download jdk-XXX-rpm.bin
2, change permissions # chmod 777 jdk-XXX-rpm.bin
3, extract./jdk-XXX-rpm.bin
4, install # rpm-IVH jdk-XXX-XXX.rpm (does not seem to install) (default installation again/usr/Java/jdk1.6.0 _ 29)
5. Create a link to replace the default gcj. // I don't know what this is, instead of the default JRE?
# Cd/usr/bin
# Ls-S-F/usr/Java/jdk1.6.0 _ 29/JRE/bin/Java
# Ls-S-F/usr/Java/jdk1.6.0 _ 29/bin/javac
6. Modify the. bashrc File
Add four rows
Export java_home =/usr/Java/jdk1.6.0 _ 29
Export java_bin =/usr/Java/jdk1.6.0 _ 29/bin
Export Path = $ path: $ java_home/bin
Export classpath =.: $ java_home/lib/dt. jar: $ java_home/lib/tools. Jar
// According to the online document, write according to your actual situation :)                                                         

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.