Re: Anybody using GNU Java
Thanks Leon and everybody else who replied. My problem was that I was trying to run the pure .bin installer instead of the .bin that decompresses to an RPM and then install the RPM. The later works fine with no other dependencies necessary. Running the .bin installer may work under some FC6 installations because of different dependencies installed. However, the one I used, which is to do the default install with only development checked only works with the RPM method. Leon Rosenberg wrote: 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]
Re: Anybody using GNU Java
Omar Eljumaily wrote: in a production Tomcat environment? I tried this once before a few years ago, and ran into some nasty bugs. Sun's Java, for me, is getting a bit weird, especially on Linux. I never quite know which version to download, each one having at least two or three different numbers associated with it. That's Java Super Enterprise 6, with SDK version 5, etc The latest problem I'm running into is that I'm trying to update to Fedora 6 which uses libstdc++.so.6, and Sun's java insists on version 5. I suppose I could install 5, but I feel that creepy dependency hell feeling coming on when I think about it. So anyway, is anybody successfully using GNU Java? If not, does anybody have any tips for installing the proper version of Sun's Java on FC6? Thanks Personally, I haven't had time to look into this in detail but apparently JPackage is the way to go if you want to master the dependencies. It's basically a set or RPMs that installs links to executables and jars/so.libs in the expected (Linux) places, it's not more difficult than that. The nice thing is that you get RPMs for various Java packages, so dependency problems are solved. If I remember well, the Sun JDK is not well-behaved i.r.t. placing files in a Linux Standard Way, as opposed to the IBM JDK for example. Still, there is a JPackage package to solve even that. Check it out: http://www.jpackage.org/ Best, -- David - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Anybody using GNU Java
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]
Re: Anybody using GNU Java
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]
Re: Anybody using GNU Java
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Omar, Omar Eljumaily wrote: in a production Tomcat environment? I tried this once before a few years ago, and ran into some nasty bugs. Sun's Java, for me, is getting a bit weird, especially on Linux. I never quite know which version to download, each one having at least two or three different numbers associated with it. That's Java Super Enterprise 6, with SDK version 5, etc It shouldn't be that complicated. The Enterprise Edition contains all the junk you need for stuff like EJB, etc. If you just need servlets, then stick with the J2SE (Standard Edition). JDK includes compiler and code samples (as well as the runtime), while the JRE is just the runtime. You should pick a version (1.4, 1.5, 1.6) and then stick with the latest release available for that version (say, 1.5.0_11-b03 is what I have for the 1.5 JDK). The latest problem I'm running into is that I'm trying to update to Fedora 6 which uses libstdc++.so.6, and Sun's java insists on version 5. Wow! And here I am stuck on libstdc++ 2.7, 2.8, and 2.9. You should be able to install more than one version of that library side-by-side... (and I question those version numbers...) I suppose I could install 5, but I feel that creepy dependency hell feeling coming on when I think about it. Did you try downloading directly from Sun's site? Or, is this a package that comes from Red Hat (or, worse, a 3rd-party)? Are you sure that is a Java dependency? It is more likely to be the package maintainer's dependency rather than Java's. You should contact the package maintainer to determine why your Java package requires that version of libstdc++. So anyway, is anybody successfully using GNU Java? If not, does anybody have any tips for installing the proper version of Sun's Java on FC6? Sadly, everything I've ever read on this and other lists about the GNU version of Java is that it causes more problems than it's worth. I'm also sad to say that when asking questions on this particular list about running Tomcat on GNU java, the only response you are likely to get is switch to Sun's JDK and save yourself the trouble. Good luck, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGXHg59CaO5/Lv0PARAiE4AJsH57MLY6/VGEqXKpPgjdse6NjUBACfaPvK dA+2tBSel9GTBchOMJcmbIY= =DCL2 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]