Java

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!!


Syndicate content