Install Java Virtual Machine in Ubuntu7.10

Source: Internet
Author: User
If you need to browse the webpage with Java Applet in Ubuntu7.10, you need to install a Java virtual machine. The default virtual machine is Sun's JRE (JavaRuntimeEnvironment) to install JRE and plugins, fonts: Open the Ubuntu7.10 terminal, enter the following command: sudoapt-getinstallsun-java6-jresun-java-plug

If you need to browse a webpage with a Java applet in Ubuntu7.10, you need to install a Java virtual machine. The default virtual machine is Sun's JRE (Java Runtime Environment)

Install JRE, plugins, fonts:

Open the terminal Ubuntu7.10 and enter the following command:

Sudo apt-get install sun-java6-jre sun-java-plugins sun-java-fonts

Of course, if you do not care about the dozens of MB space or need to do JAVA-related development work, we recommend that you install JDK. JDK contains JRE.

Sudo apt-get install sun-java6-jdk

Browser Configuration:

Take FIREFOX for example: cd to the/usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7 directory, a file named libjavaplugin_oji.so will be found, this is a dynamic link library (dll) file in linux. Add executable permissions to the file and establish a soft connection to the file under the plug-ins directory of firefox.

Cd/usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7

Sudo chmod a + w libjavaplugin_oji.so

Sudo chmod a + w/usr/lib/firefox/plugins

Ln-s libjavaplugin_oji.so/usr/lib/firefox/plugins

Test JRE installation:

Restart the browser.

Test whether JRE installation is successful, access the http://java.com/en/download/help/testvm.xml

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.