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-freeThen you will need to install JDK (you may also use aptitude and search for java5):
apt-get install sun-java5-jdkMoreover, 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 javacCheck your Java version if it is setup correctly:
java -versionIt's time for Tomcat. Just simply run this command:
apt-get install tomcat5.5 tomcat5.5-admin tomcat5.5-webappsGo to http://example.com:8180/ and check if you can see the default tomcat homepage. That is!!


















Post new comment