tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Dubuc" <>
Subject Re: Anybody using GNU Java
Date Tue, 29 May 2007 18:33:13 GMT
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:



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

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


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
> 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:
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message