So I haven't yet tried installing the non-rpm binary, that's probably next on the list. But, I found that running 'java -jar myapp.jar', and I changed the symlink in /etc/alternatives/java to point to /usr/java/default/bin/java. Now, running 'java -version' from the command line tells me I have "1.6.0_01".
Now I missed this before, but when I go to the java.com test page to see if I have it installed in Firefox, it creates a little text file in my home directory called 'plugin_stack.trace'. $ cat plugin_stack.trace java.lang.NoClassDefFoundError: Could not initialize class com.sun.deploy.config.Config at sun.plugin.AppletViewer.initEnvironment(AppletViewer.java:271) at sun.plugin.navig.motif.Plugin.doit(Plugin.java:141) at sun.plugin.navig.motif.Plugin.start(Plugin.java:104) I did a google search for "java.lang.NoClassDefFoundError: Could not initialize class com.sun.deploy.config.Config" and found this page: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6542512 Basically, it says RHEL5 is not supported because of a conflict in some c++ dynamic library. So, to everyone who responded, what version of SL do you run? I've tried this on SL5 and Fedora7 with the same results. I'm not married to them, though. Thanks, Mike On 6/14/07, Jon Peatfield <[EMAIL PROTECTED]> wrote:
On Thu, 14 Jun 2007, Urs Beyerle wrote: > Michael H. Semcheski wrote: >> Hello, >> <snip. >> Yum says I have gcj 1.4.2 and java-1.5.0-sun-compat.noarch installed. >> I downloaded the java 6 jre from java.com as a binary installer, which >> unpacks to an rpm and installed it. >> >> I've created symlinks to the sun plugin in /usr/lib/mozilla/plugins, >> mucked with about:config java:java_plugin_library_name. >> >> I really need the Sun JRE, but they don't make it easy, do they? Any >> suggestions? > > What I have: > jdk-1.6.0_01-fcs downloaded from Sun and installed with rpm -Uhv. > > java-1.6.0-sun-compat-1.6.0.01-1jpp rebuild from SRPM, downloaded from > http: //www.jpackage.org/ - you find it here: > http: //linux.web.psi.ch/dist/scientific/50/psi/all/java-1.6.0-sun-compat-1.6.0.01-1jpp.i586.rpm > > firefox plugin works with the rpms. > > By the way, the link in /usr/lib/mozilla/plugins is done by > java-1.6.0-sun-compat-1.6.0.01-1jpp: > $ ll /usr/lib/mozilla/plugins/libjavaplugin_oji.so > lrwxrwxrwx 1 root root 77 Jun 8 20:56 > /usr/lib/mozilla/plugins/libjavaplugin_oji.so -> > /usr/lib/jvm/java-1.6.0-sun-1.6.0.01/jre/plugin/i386/ns7/libjavaplugin_oji.so We download the non-rpm version (for historical reasons and because we need to have several different versions of the JRE/JDK installed), and then just make symlinks from the mozilla-seamonkey and firefox plugins trees (because that is how we have always done it)... e.g. for firefox we do ... my $moz_inst="/usr/lib/firefox-$mver"; ... (hackery for lib64 stuff) ... chdir($moz_inst) || die ("Can't chdir to $moz_inst: $!"); ... for $targ (keys(%elinks)) { ... symlink($elinks{$targ}, $targ); ... where for plugins/libjavaplugin_oji.so that currently points off at /opt/sunjava/jre1.6.0_01/plugin/i386/ns7/libjavaplugin_oji.so We do the same process for mozilla-seamonkey except that obviously $moz_inst starts off being /usr/lib/mozilla-$moztype-$mver or something... What is the /usr/lib/mozilla/plugins/ tree for? Stuff that is shared by *both* firefox and mozilla or something else? -- Jon Peatfield, Computer Officer, DAMTP, University of Cambridge Mail: [EMAIL PROTECTED] Web: http://www.damtp.cam.ac.uk/