JDK + Tomcat on Debian etch mini-HOWTO

Install JDK and Tomcat in Debian etch is really simple, most packages are pre-configure for you.

Before install, check your /etc/apt/sources.list if already come with contrib and non-free APT source. Here is my example:

deb http://ftp.hk.debian.org/debian/ etch main contrib non-free
deb-src http://ftp.hk.debian.org/debian/ etch main contrib non-free

Then you will need to install JDK (you may also use aptitude and search for java5):

apt-get install sun-java5-jdk

Moreover, tell Debian to use this newly installed JDK as default (you may use update-alternatives --all and check all linkage status):

update-alternatives --config java
update-alternatives --config javac

Check your Java version if it is setup correctly:

java -version

It's time for Tomcat. Just simply run this command:

apt-get install tomcat5.5 tomcat5.5-admin tomcat5.5-webapps

Go to http://example.com:8180/ and check if you can see the default tomcat homepage. That is!!


Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <h1> <h2> <h3> <h4> <h5> <h6> <em> <strong> <code> <del> <blockquote> <q> <sub> <p> <br> <ul> <ol> <li> <dl> <dt> <dd> <a> <b> <u> <i> <sup> <acronym> <pre> <img>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Images can be added to this post.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.