Install Tomcat 5.5 In Debian

Source: Internet
Author: User
Install Tomcat5.5 under Debian-Debian Technology for the Linux release. For details, refer to the following section. Author: kcynic

My debian version is etch 4.0.
Use apt-get install tomcat5.5 (the latest version is 5.5 currently available) and an error is found.

Not starting Tomcat: no Java Development Kit found

When the log is created, use apt-cache search jdk In Debian, you can find the installation source of the sun-java-jdk6, (a premise is that you have to add a source: deb http://ftp.us.debian.org/debian sarge main contrib non-free) it should be the latest available source currently available in debian.

Okay, apt-get install sun-java-sdk6 it will install automatically.

After the installation is complete, the error persists. It turns out that the java environment is not configured. The so-called configuration of the java environment should be automatic, but as a newbie, I still don't quite understand why it should be done manually. After doing this, google found that I could not easily complete these things to configure the JAVA_HOME environment variables. I couldn't change the variables, so, keep a lot of things for automatic processing!

Therefore, modify the/etc/default/tomcat5.5 file, which contains a line:
# JAVA_HOME =/usr/lib/jvm/java-1.5.0-sun

If you open this line of comment, but, we installed a java-sdk6, You have to modify, changed to this:
JAVA_HOME =/usr/lib/jvm/java-6-sun

Try again, right?
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.