Debian40r4 (erch) install Java & Eclipse

Source: Internet
Author: User
Debian40r4 (erch) installs Java & amp; Eclipse-Debian information for the Linux release. For more information, see the following. The source of Debian does not contain SUN's JRE & JDK. The reason is that the license is incorrect. I don't know the specific reason. According to my understanding, Debian requires GPL, and SUN releases Java according to GPLv3, there should be no problem. Which of you must tell me. Aside from that, Debian's founders joined SUN. I also listened to Ian Murdock's Chinese lecture. The relationship between Debian and Sun was amazing. The following describes how to install Java and Eclipse.

1. install Java
Go to SUN's website to download JDK for Linux. Do not download the rpm package. Download bin directly. The following uses jdk-6u5-linux-i586.bin as an example.

Execute the sh self-extracting script and agree to SUN's license
Sh jdk-6u5-linux-i586.bin

Decompress a directory jdk1.6.0 _ 05 and put down Java.

2. Install Eclipse

After apt-get install eclipse, run the command first to check whether the error is similar to "/usr/lib/j2sdk1.4-sun/bin/java not found, it's still 1.4, and Java 6 has come out, so there is no way to obey this constraint.

Mv jdk1.6.0 _ 05 // usr/lib/j2sdk1.4-sun

To run java in the command line, modify the two symbolic links.
Cd/usr/bin
Ln-s-f/usr/lib/j2sdk1.4-sun/jre/bin/java
Ln-s-f/usr/lib/j2sdk1.4-sun/bin/javac

The java-version Verification link is run successfully, and then eclipse is run successfully.
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.