Ubuntu Java installation and configuration

Source: Internet
Author: User
1, sudoapt-getinstallsun-java6-sdk2, sudoapt-getinstallsun-java6-plugin to the browser to install JAVA support 3, sudoapt-getinstallsun-java6-plugin after the installation of these three also need to write system variables: $ sudogedit/etc/environment write in the text editor

1. sudo apt-get install sun-java6-sdk

2. sudo apt-get install sun-java6-plugin to install JAVA support for the browser

3. sudo apt-get install sun-java6-plugin
After installing the three variables, you need to write the system variables:
$ Sudo gedit/etc/environment
Write the following two lines in the Text Editor:
CLASSPATH =.:/usr/lib/jvm/java-6-sun/lib
JAVA_HOME =/usr/lib/jvm/java-6-sun

4. Adjust the priority of system virtual machines as follows:
$ Sudo gedit/etc/jvm
Write the following sentence at the top of the Text Editor:
/Usr/lib/jvm/java-6-sun

Installed successfully! Enter helloword for testing

Related Article

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.