Hi,
I just installed CentOS 5 on a few machines, to experiment with it. I have some trouble installing a Java plugin for Firefox. I've searched through the forum and read the various info at jpackage.org, and I'm a bit confused.
1) Can you point me to some reliable bit of information, even if it's laconic?
2) If I understand the info on http://jpackage.org/yum.php correctly, Java is not yet available for CentOS 5. Correct me if I'm wrong.
Cheers,
Niki
On Thu, 2007-05-24 at 11:21 +0200, Niki Kovacs wrote:
I just installed CentOS 5 on a few machines, to experiment with it. I have some trouble installing a Java plugin for Firefox. I've searched through the forum and read the various info at jpackage.org, and I'm a bit confused.
- Can you point me to some reliable bit of information, even if it's
laconic?
http://wiki.centos.org/HowTos/JavaOnCentOS
-- Daniel
didn't work exactly for me on x86_64
I had to use: $ (echo config gpgcheck 0; echo localinstall java-1.5.0-sun*.rpm; echo run) > yum-cmd (as root) #yum shell yum-cmd
to resolve some dependancies (libXp.x86_64 0:1.0.0-8 unixODBC-devel.x86_64 0:2.2.11-7.1 ) that failed to get resolved using the centos howto's directions of:
Install the RPMs as user root:
su - cd /home/<username>/rpmbuild/RPMS/i586 rpm -Uvh java-1.5.0-sun-1.5.0.11-1jpp.i586.rpm rpm -Uvh java-1.5.0-sun-alsa-1.5.0.11-1jpp.i586.rpm rpm -Uvh java-1.5.0-sun-plugin-1.5.0.11-1jpp.i586.rpm
Shawn
Shawn wrote:
didn't work exactly for me on x86_64
I had to use: $ (echo config gpgcheck 0; echo localinstall java-1.5.0-sun*.rpm; echo run) > yum-cmd (as root) #yum shell yum-cmd
to resolve some dependancies (libXp.x86_64 0:1.0.0-8 unixODBC-devel.x86_64 0:2.2.11-7.1 ) that failed to get resolved using the centos howto's directions of:
Install the RPMs as user root:
su - cd /home/<username>/rpmbuild/RPMS/i586 rpm -Uvh java-1.5.0-sun-1.5.0.11-1jpp.i586.rpm rpm -Uvh java-1.5.0-sun-alsa-1.5.0.11-1jpp.i586.rpm rpm -Uvh java-1.5.0-sun-plugin-1.5.0.11-1jpp.i586.rpm
Were you able to make the version of tomcat included with Centos5 run after install Sun java?
Hi all,
I'm trying to put Java 1.6 on CentOS x86_64...
I'm using the instructions on: http://wiki.centos.org/HowTos/JavaOnCentOS
I had installed Java 1.6.0_01-b06 AMD64, Netbeans and Eclipse runs fine... but I can't make Tomcat5 run with it... it runs on 1.4.2-gcj (x86_64), when I start Tomcat5 I get this on catalina.out:
Using CATALINA_BASE: /usr/share/tomcat5 Using CATALINA_HOME: /usr/share/tomcat5 Using CATALINA_TMPDIR: /usr/share/tomcat5/temp Using JRE_HOME: sun.misc.InvalidJarIndexException: Invalid index at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:854) at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:762) at sun.misc.URLClassPath.getResource(URLClassPath.java:168) at java.net.URLClassLoader$1.run(URLClassLoader.java:192) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$000(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$000(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:223) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:410)
Someone had an idea on what I can do?
Thanks,
Antonio.
On Mon, 2007-06-11 at 16:32 -0300, Antonio da Silva Martins Junior wrote:
sun.misc.InvalidJarIndexException: Invalid index at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:854)
[snip]
Someone had an idea on what I can do?
This was recently discussed on the list: http://lists.centos.org/pipermail/centos/2007-May/081650.html
Upstream has an update to fix the brp-java-repack-jars script: http://rhn.redhat.com/errata/RHBA-2007-0365.html
To fix this problem, we'd need that update, and rebuild the tomcat (and possibly some other packages). You could also try tomcat from JPackage, which was already fixed.
-- Daniel
----- "Daniel de Kok" danieldk@pobox.com escreveu:
On Mon, 2007-06-11 at 16:32 -0300, Antonio da Silva Martins Junior wrote:
sun.misc.InvalidJarIndexException: Invalid index at
sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:854) [snip]
Someone had an idea on what I can do?
This was recently discussed on the list: http://lists.centos.org/pipermail/centos/2007-May/081650.html
Upstream has an update to fix the brp-java-repack-jars script: http://rhn.redhat.com/errata/RHBA-2007-0365.html
To fix this problem, we'd need that update, and rebuild the tomcat (and possibly some other packages). You could also try tomcat from JPackage, which was already fixed.
Thanks Daniel,
I had downloaded and installed the patch from upstream (redhat-rpm-config-8.0.45-17.0.1), then setup (RPM_BUILD_ROOT=/usr/share/java/tomcat5/) and run /usr/lib/rpm/redhat/brp-java-repack-jars, after that tomcat5 starts (with a lot of messages in catalina.out), but it's executing the demos at least :)
Now it's time to give this machine to his users and wait for the bugs :)
Thanks,
Antonio.