Debian simple installation of JDK6

Source: Internet
Author: User
Debian simple installation of JDK6 -- Debian, the Linux release technology. The following is a detailed description. Jdk6.

Download JDK 6 officially

Install the SDK's DEB package build tool: java-package

Apt-get install-u java-package fakeroot

Create deb Software Package

Su XXXXXX
Run as a common user
FAK eroot make-jpkg jdk-1_5_0_06-linux-i586.bin

Wait.

The JDK6.deb package is available on the desktop.

Change to root .....

Dpkg-I XXXXXXXXXX. deb

Configure the environment
PATH = $ PATH:/usr/lib/j2sdk1.6-sun/bin:/usr/lib/j2sdk1.6-sun/jre/bin
JAVA_HOME =/usr/lib/j2sdk1.6-sun
JRE_HOME =/usr/lib/j2sdk1.6-sun/jre
CLASSPATH =.:/usr/lib/j2sdk1.6-sun/lib/tools. jar:/usr/lib/j2sdk1.6-sun/lib/$ export PATH
Export JRE_HOME
Export JAVA_HOME
Export CLASSPATH

Write HELLO.

Uninstall
Uninstall the software package:
Apt-get remove -- purge sun-j2sdk1.6

9. Culture
Install Chinese fonts:
Create the fallback directory under the $ JAVA_HOME/jre/lib/fonts/directory.
Copy the Chinese font (for example, simsun. ttf) to this directory.

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.