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 <[EMAIL PROTECTED]> wrote:
On 5/29/07, Omar Eljumaily <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to