Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 8433 invoked from network); 25 Jul 2006 13:58:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Jul 2006 13:58:50 -0000 Received: (qmail 99234 invoked by uid 500); 25 Jul 2006 13:58:35 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 99217 invoked by uid 500); 25 Jul 2006 13:58:35 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 99206 invoked by uid 99); 25 Jul 2006 13:58:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jul 2006 06:58:34 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of oozypal@gmail.com designates 64.233.166.176 as permitted sender) Received: from [64.233.166.176] (HELO py-out-1112.google.com) (64.233.166.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jul 2006 06:58:32 -0700 Received: by py-out-1112.google.com with SMTP id 39so2626622pyu for ; Tue, 25 Jul 2006 06:58:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gaYaI7WZII+6t1Z+P9PLenQb6LuD5hgIoMHgW132fcXce2lXMOpgv7TwudI9KZIZC01gUxzLyaFQn0BPbBgm5IlCBi64qd56rAEnnKL0ilNNx62z26LEciN8XK9Wr/d2xNpwqYe+Gx9j0gyTeWTi29e8arq7Tiy/hV9MvBDM+N8= Received: by 10.35.79.3 with SMTP id g3mr9524646pyl; Tue, 25 Jul 2006 06:58:11 -0700 (PDT) Received: by 10.35.132.3 with HTTP; Tue, 25 Jul 2006 06:58:11 -0700 (PDT) Message-ID: <299ffe0d0607250658r60d5602l9fda56838b1679a3@mail.gmail.com> Date: Tue, 25 Jul 2006 16:58:11 +0300 From: "OOzy Pal" To: "Tomcat Users List" Subject: Re: Where is my Tomcat In-Reply-To: <1153817763.17069.14.camel@hsa.csbnet.se> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3A55348B50FD2A40AAA40ABA16C6B6D607F2951B@EXNJMB23.nam.nsroot.net> <299ffe0d0607241330x27f41123he89fb380ac7f7252@mail.gmail.com> <44C53573.4080700@copyweb.co.uk> <1153817763.17069.14.camel@hsa.csbnet.se> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 7/25/06, Martin Millnert wrote: > On Mon, 2006-07-24 at 23:02 +0200, edward wrote: > > OOzy Pal wrote: > > > > >> > > >> > > > > > > I found the JKD but I am not sure how start tomcat. I am really stuck. > > > I am not sure what am I missing? Is there a good tutorial for > > > installing tomcat? > > > > > > Any help is appreciated. > > > > > Chances are that the Debian tomcat init scripts point to gcj not to the > > Sun jdk. It's OK, you can fix that. Try javac -version, it will tell you > > about the compiler (which is part of the jdk, not the jre). Probably > > you will find that /usr/bin/java and about half a dozen other > > /usr/bin/javax commands including javac and javah are symlinks to the > > gcj versions of java somewhere in /usr/lib. So what you need to do is to > > change those symlinks to point to the Sun ones, probably in > > /usr/share/lib. Some distros have a command which lets you change the > > system's version of java (Gentoo does, I'm not sure about Debian) > > without manually editing all the symlinks. > > > > > For reference, on a Ubuntu dapper desktop machine, here's how to manage > the symlinks: > root@desktop1:~# which java > /usr/bin/java > root@desktop1:~# ls -al /usr/bin/java* > lrwxrwxrwx 1 root root 22 2006-02-02 15:29 /usr/bin/java > -> /etc/alternatives/java > lrwxrwxrwx 1 root root 23 2006-03-02 14:25 /usr/bin/javac > -> /etc/alternatives/javac > lrwxrwxrwx 1 root root 25 2006-03-02 14:25 /usr/bin/javadoc > -> /etc/alternatives/javadoc > lrwxrwxrwx 1 root root 23 2006-03-02 14:25 /usr/bin/javah > -> /etc/alternatives/javah > lrwxrwxrwx 1 root root 23 2006-03-02 14:25 /usr/bin/javap > -> /etc/alternatives/javap > lrwxrwxrwx 1 root root 24 2006-03-02 14:26 /usr/bin/javaws > -> /etc/alternatives/javaws > > These commands does not have to be run as root, Ubuntu favours not using > the root account but sudo instead -- which is how OOzy was working. > The above shows and proves that the Ubuntu-style method is in fact in > use, and unorthodox methods has not been introduced to the packages. ;) > There are clear advantages of managing the JDKs as real packages, and > there is plenty of reference on this online: > http://www.google.se/search?hl=sv&q=the+correct+way+to+install+sun+java > +jdk+on+ubuntu&btnG=S%C3%B6k&meta= > > Ubuntu (as well as Debian) ships with the update-alternatives program, > which manages the symlinks and it is necessary to redirect these if you > have installed and are planning on using the Sun JDK. > > Example: > > root@desktop1:~# update-alternatives --config java > > There are 5 alternatives which provide `java'. > > Selection Alternative > ----------------------------------------------- > 1 /usr/lib/j2sdk1.5-sun/bin/java > * 2 /usr/lib/j2sdk1.4-sun/bin/java > 3 /usr/bin/gij-wrapper-4.1 > 4 /usr/bin/gij-wrapper-4.0 > + 5 /usr/lib/jvm/java-gcj/jre/bin/java > > Press enter to keep the default[*], or type selection number: > > > Note that this only configures the `which java`-program. You should > point all programs to the same version. At the very least make sure > "java" and "javac" are pointing to the same JDK to avoid confusion. > To point all programs in a one-liner, you could use: > root@desktop1:~# cd /usr/bin && for PROGRAM in `ls java*`; do > update-alternatives --config $PROGRAM ; done > > If you're using the sudo administration method, modify the line > accordingly: > root@desktop1:~# cd /usr/bin && for PROGRAM in `ls java*`; do sudo > update-alternatives --config $PROGRAM ; done > > This requires you to possibly write in the password as many times as > there are PROGRAMs, unless your system cache your sudo credentials. > A more complicated method to achieve the same result is: > sudo bash -c 'cd /usr/bin && for PROGRAM in `ls java*`; do > update-alternatives --config $PROGRAM ; done' > > > HTH, > Regards > -- > Martin Millnert > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.3 (GNU/Linux) > > iD8DBQBExdyjApq14zkeZkwRAqHaAJ4z9Y9kniiIZdqMtEdZrZP37cFgcQCfactI > SU3qpmEIh5uxUowdGjbBn/Q= > =eQ5x > -----END PGP SIGNATURE----- > > > I am really lost. How about starting over? I will remove everything and start from scratch. I just want some good tutorial on how to install everything again. Anyhow is some info of the my current system: $java -version java version "1.4.2" gij (GNU libgcj) version 4.1.0 (Ubuntu 4.1.0-1ubuntu8) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ------------------------- $javac -version Eclipse Java Compiler v_585_R31x, 3.1.2 release, Copyright IBM Corp 2000, 2006. All rights reserved. -- OOzy Kubuntu-Dapper --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org