Run Tomcat 6 with jdk1.6 in CentOS

Source: Internet
Author: User

My system is in CentOS4.3 and JDK1.4.2 is installed directly when the system is installed. Now I want to install JDK1.5, when executing rpm-ql jdk, rpm-qa java, and rpm-qa j2sdk, the system prompts that the installation package is not found. However, when java-version is executed, the version is JDK1.4.2.

Run the command first;

# Alternatives -- remove java/usr/shares/java/libgcj-java-placeholder.sh



# Alternatives -- remove javac/usr/share/java/libgcj-javac-placeholder.sh

# Alternatives -- remove jar/usr/bin/fastjar

# Alternatives -- remove jar.1.gz/usr/share/man/man1/fastjar.1.gz

Delete original link

Then create a new link/usr/java/jdk/which is the JDK version installed by yourself.

# Ln-s/usr/java/jdk/bin/java/usr/bin/java

# Ln-s/usr/java/jdk/bin/javac/usr/bin/javac

# Ln-s/usr/netbeans-4.0beta2/bin/netbeans/usr/bin/netbeans

You can create other links on your own.
 

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.