Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 55809 invoked from network); 29 May 2007 18:40:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 May 2007 18:40:20 -0000 Received: (qmail 29085 invoked by uid 500); 29 May 2007 18:40:10 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 29059 invoked by uid 500); 29 May 2007 18:40:10 -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 29048 invoked by uid 99); 29 May 2007 18:40:10 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 May 2007 11:40:10 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of martind1111@gmail.com designates 209.85.132.242 as permitted sender) Received: from [209.85.132.242] (HELO an-out-0708.google.com) (209.85.132.242) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 May 2007 11:40:05 -0700 Received: by an-out-0708.google.com with SMTP id b2so722880ana for ; Tue, 29 May 2007 11:39:44 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=og7Z4P24WKp8OF8zbD1peHy2luRTuSoIvecFH/O3SRRWWyltPJE2WyOorjsr8w3J0jl+m9FvM1t8tTMOGmZ1plgWgA/kI2DUyyyycq7cebhxQq5U5td3ySMBE6wTTBckzDY+HtPtUTJVn+mO/aW6QnyLXM+zVw749X0VKGl34gs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kZ+PNTqoY1b93K8/+TDFXm3ym/9LjyurnqmEDATJa2zdJOFcrqcsUiDpkMWjBbsqp9RRN+1x4kd11YW59GAXJUUR6p/fD8Y7nJMkEqDf5I8lZob7KhYZuhq7J7/nps4l6OSQdGR9CMaRo20c+n3X04KnrNBDqLgn7iElfOilgOc= Received: by 10.143.33.19 with SMTP id l19mr231964wfj.1180463594019; Tue, 29 May 2007 11:33:14 -0700 (PDT) Received: by 10.143.162.13 with HTTP; Tue, 29 May 2007 11:33:13 -0700 (PDT) Message-ID: <7a0107ba0705291133x2d6415d5l4c570941e987a56@mail.gmail.com> Date: Tue, 29 May 2007 14:33:13 -0400 From: "Martin Dubuc" To: "Tomcat Users List" Subject: Re: Anybody using GNU Java In-Reply-To: <327858f40705290934l16ee9becy64bea52b579cd90d@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <465C4735.6020907@omnicode.com> <327858f40705290934l16ee9becy64bea52b579cd90d@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org I would not recommend using GNU java with Tomcat. I remember I struggled with installation of JDK 6 on FC5 or FC6 when it was first released. I figured eventually that there were some directories that were supposed to be installed by the jpackage-utils RPM that JDK was looking for that were not on the system. The directories in question are /usr/lib/java-1.6.0 and /usr/share/java-1.6.0. I don't remember the exact details, but I think that the script that runs javac is trying to access library classes in these directories, but failing to find the directories, it aborts and returns some crypting error message. Once I manually fixed my build server, simply adding the missing directories, things started to work. The version of the jpackage-utils RPM that was installed on my server when I noticed the problem was jpackage-utils-1.6.6-1jpp_2rh, but there are no issues with the version that is currently installed on my system (jpackage-utils-1.7.3-1jpp.2.fc6). I also spent some time to find a way to cleanly install Sun's JDK on Fedora Core system using the alternatives procedure. Here is a script that can be used to force the system to default to Sun's JDK instead of GNU java: #!/bin/sh JAVA_HOME=/usr/java/jdk1.6.0 alternatives --install /usr/bin/javac javac ${JAVA_HOME}/bin/javac 1440 --slave /usr/bin/jar jar ${JAVA_HOME}/bin/jar --slave /usr/bin/jarsigner jarsigner ${JAVA_HOME}/bin/jarsigner --slave /usr/bin/javadoc javadoc ${JAVA_HOME}/bin/javadoc --slave /usr/bin/javah javah ${JAVA_HOME}/bin/javah --slave /usr/bin/rmic rmic ${JAVA_HOME}/bin/rmic --slave /usr/lib/jvm-exports/java java_sdk_exports ${JAVA_HOME} --slave /usr/lib/jvm/java java_sdk ${JAVA_HOME} alternatives --install /usr/bin/java java ${JAVA_HOME}/bin/java 1440 --slave /usr/bin/keytool keytool ${JAVA_HOME}/bin/keytool --slave /usr/bin/rmiregistry rmiregistry ${JAVA_HOME}/bin/rmiregistry --slave /usr/lib/jvm-exports/jre jre_exports ${JAVA_HOME}/jre --slave /usr/lib/jvm/jre jre ${JAVA_HOME}/jre Martin On 5/29/07, Leon Rosenberg wrote: > On 5/29/07, Omar Eljumaily wrote: > > > > So anyway, is anybody successfully using GNU Java? > > I dont think its possible. It simply doesnt work. > > If not, does anybody > > have any tips for installing the proper version of Sun's Java on FC6? > > > Yes. > Goto > http://java.sun.com/javase/downloads/index.jsp > > Select > JDK 6u1 > > Select your OS version. > > Download the binary, run it in a folder of your choice. > > set JAVA_HOME. > > ready. > Leon > > P.S. I usually link /usr/local/java to the download location i.e. > /opt/java/jdk.1.6.0 > and set the JAVA_HOME to /usr/local/java, and add $JAVA_HOME/bin/ to $PATH. > > --------------------------------------------------------------------- > 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 > > --------------------------------------------------------------------- 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