Install Sun/Oracle Java JDK/JRE 6u45 on Fedora 19/18, CentOS/RHEL 6.4/5.9 - Comment Page: 3

Please note: This guide still working normally if you want install Sun/Oracle Java 6, but if you want Java 8 version, then check Install Oracle Java JDK/JRE 8 on Fedora, CentOS/RHEL or if you want Java 7 version, then check Howto Install Sun/Oracle Java JDK/JRE 7 on Fedora, CentOS/Red Hat (RHEL). By default, Fedora 19/18/17/16/15/14/13/12 and CentOS/Red Hat (RHEL) 6.4/6.3/6.2/6.1/6/5.9 Linux operating systems use the OpenJDK Java, which is a good choice for normal use and it works with almost all the Java programs normally. OpenJDK is also easy to install and maintain with YUM package management, but some cases, Sun/Oracle Java installation is necessary, for example, if some program...

145 comments on “Install Sun/Oracle Java JDK/JRE 6u45 on Fedora 19/18, CentOS/RHEL 6.4/5.9 - Comment Page: 3

1 2 3 4 5
    1. You forgot jar.

      alternatives –install /usr/bin/jar jar $JAVA_HOME/bin/jar 20000

      Reply
      • You can always do `java -jar` :)

        Reply
    2. Whenever I try to install the JDK (either the rpm.bin file or the .bin file) I run into the following problem:

      ./jdk-6u24-linux-x64.bin: line 26: 4483 Aborted (core dumped) “$javaprefix/bin/java” com.sun.servicetag.Installer -source “$source” “$register_option” > /dev/null 2>&1

      Please note that I am using Fedora 14 x64 distro.

      Has anybody run into this problem?

      Reply
      • Hi!

        /dev/null 2>&1″>

        Yes. I Solved this problem. Exit you X-Server and start install in to console

        Fedora 15

        Reply
    3. What is it with Linux people and the Copy-Paste religion? Why the insistance on providing “recipes” (series of instructions) that the users then must copy and paste. Why not just provide a BASH SCRIPT for download, that does all the work?.

      The users can then open the bash script and see what it does, too.

      FC

      Reply
      • Hi Fernando nice to see you here,

        Heh, Copy-Paste religion yes… :)

        For me at least it’s much more important to actually see what is really happening when I install something. If I use bash script to install something and it works like a charm then I’m probably not interested how program was really installed.

        Other drawbacks if using Bash scripts is the fact that, because they need usually root user permission, so for example, rootkits and other trash is very easy to install users computer. By the way this is one reason why Windows is sooooo vulnerable, because people install programs with installers from the Internet and don’t know what is really happening when they click “Yes” or “Ok”.

        And some cases bash scripts might be very complicated and have so many options that it is more difficult and time consuming use bash script than run just needed commands using copy-paste method.

        And yes this is my opinion on this bash script thing, but I of course understand your point. :D

        Reply
    4. This is the best install that I have found. Thanks for doing this and keeping it up to date.

      Can you please explain a few things? I ran the rpm.bin from /usr/lib/jvm/ and that put a bunch of rpms in that directory. At first I didn’t understand that the install also put the jdk in /usr/java/. Why didn’t I have to run the rpm command? Did it install anything any place else, and if so what was it? Do I need to run the rpm command? Can I remove the rpms or are they being used or needed in the future?

      Thanks,
      Josh

      Reply
      • Hi Josh,

        Thanks for the compliments!

        Actually this rpm.bin package is installer which installs Java and it runs internally needed RPM commands. Yes, your JDK or JRE is installed on /usr/java directory.

        And you don’t need to run any rpm commands when you use installer and you don’t need installer (rpm.bin) or RPM’s after installation and you can remove those.

        Personally I install new JDK version when it comes and then remove old versions later. And installing new versions you can use exactly same method. And I try to keep this guide up-to-date, with OS versions and Java versions…

        Reply
    5. Thank you. Excelent descriptions.

      Reply
    6. Hi,

      I can’t get this to work. When I use about:plugins in firefox, the java one is not listed. I am using fedora 14, and when I type “alternatives –display libjavaplugin.so” nothing happens.

      Thanks

      Reply
      • Hi Godzilla’s Mistress,

        Did you run some of following command (depending on your system 32-bit or 64-bit and installation JRE or JDK)

        
        ## JDK and 32-bit Linux ##
        alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/jdk1.6.0_24/jre/lib/i386/libnpjp2.so 20000
         
        ## JDK and 64-bit Linux ##
        alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/jdk1.6.0_24/jre/lib/amd64/libnpjp2.so 20000
        
        ## JRE and 32-bit Linux ##
        alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/jre1.6.0_24/lib/i386/libnpjp2.so 20000
         
        ## JRE and 64-bit Linux ##
        alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/jre1.6.0_24/lib/amd64/libnpjp2.so 20000
        
        Reply
        • i have the same problem When I use about:plugins in firefox, the java one is not listed. I am using fedora 14 64bits, and when I type “alternatives –display libjavaplugin.so” nothing happens.

          im already do this….
          ## JRE and 64-bit Linux ##
          alternatives –install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/jre1.6.0_24/lib/amd64/libnpjp2.so 20000

          PLease help..

          Reply
          • Hi raul,

            I can get libjavaplugin.so.x86_64 working on Fedora 14 (64-bit) system.

            Could out post output of following commands:

            
            ls -la /usr/java/jre1.6.0_24/lib/amd64/libnpjp2.so
             
            alternatives --display libjavaplugin.so.x86_64
            
            Reply
            • [[email protected] raul]# ls -la /usr/java/jre1.6.0_24/lib/amd64/libnpjp2.so
              -rwxr-xr-x. 1 root root 81456 feb 2 19:30 /usr/java/jre1.6.0_24/lib/amd64/libnpjp2.so
              [[email protected] raul]# alternatives –display libjavaplugin.so.x86_64
              libjavaplugin.so.x86_64 – el estado es automático.
              el enlace apunta actualmente a /usr/java/jdk1.6.0_23/jre/lib/amd64/libnpjp2.so
              /usr/java/jdk1.6.0_23/jre/lib/amd64/libnpjp2.so – prioridad 20000
              /usr/java/jdk1.6.0_24/jre/lib/amd64/libnpjp2.so – prioridad 20000
              /usr/java/jre1.6.0_24/lib/amd64/libnpjp2.so – prioridad 20000
              /usr/java/default/lib/amd64/libnpjp2.so – prioridad 20000
              /usr/java/jre1.6.0_23/lib/amd64/libnpjp2.so – prioridad 20000
              La ‘mejor’ versión actual es /usr/java/jdk1.6.0_23/jre/lib/amd64/libnpjp2.so.
              [[email protected] raul]#

              Reply
                • Hi again raul,

                  Please try following:

                  
                  alternatives --config libjavaplugin.so.x86_64
                  

                  And select latest (and right) number from list. Then restart Firefox and check about:plugins again.

                  Reply
                    • Hi again raul,

                      Actually your problems sounds now SELinux problem, so try run following command as root:

                      
                      Fedora 64-bit
                      chcon -t execmem_exec_t '/usr/lib64/firefox-3.6/firefox'
                      
                      Fedora 32-bit
                      chcon -t execmem_exec_t '/usr/lib/firefox-3.6/firefox'
                      

                      Then restart Firefox and check about:plugins again. Is it working?

                      Reply
                      • Hi JR,

                        Now everything it’s running.
                        Thank you so much. You’re the best.

                        Raul.

    7. I am having the same problem that GM had with F14 — Sun JRE installation does not provide the java plugin for Firefox. When performing the Firefox check using “about:plugins”, no java plugins are listed. This is true regardless of whether I enable the default OpenJDK or the newly installed Oracle JRE as my default java installation.

      I am using an x86_64 system on a fresh install of Scientific Linux 6.0 with the latest updates. Yes, I did perform the following:

      ## JRE and 64-bit Linux ##
      alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/jre1.6.0_24/lib/amd64/libnpjp2.so 20000

      For reference:

      # alternatives --config java

      There are 2 programs which provide 'java'.

      Selection Command
      -----------------------------------------------
      1 /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
      *+ 2 /usr/java/jre1.6.0_24/bin/java

      # java -version
      java version "1.6.0_24"
      Java(TM) SE Runtime Environment (build 1.6.0_24-b07)

      # javaws
      Java(TM) Web Start 1.6.0_24

      The version of Firefox provided is 3.6.14.

      Reply
      • Hi bob,

        I can get libjavaplugin.so.x86_64 working on 64-bit system.

        Could out post output of following commands:

        
        ls -la /usr/java/jre1.6.0_24/lib/amd64/libnpjp2.so
        
        alternatives --display libjavaplugin.so.x86_64
        
        Reply
    8. To use alternatives system properly you have to issue following commands:


      javaver=1.6.0
      mkdir /usr/lib/jvm-exports/java-${javaver}-sun;
      (
      cd /usr/lib/jvm-exports/java-${javaver}-sun;
      ln -s /usr/java/default/jre/lib/rt.jar jaas-${javaver}.jar
      ln -s /usr/java/default/jre/lib/jce.jar jce-${javaver}.jar
      ln -s /usr/java/default/jre/lib/rt.jar jdbc-stdext-${javaver}.jar
      ln -s /usr/java/default/jre/lib/rt.jar jdbc-stdext-3.0.jar
      ln -s /usr/java/default/jre/lib/rt.jar jndi-${javaver}.jar
      ln -s /usr/java/default/jre/lib/rt.jar jndi-cos-${javaver}.jar
      ln -s /usr/java/default/jre/lib/rt.jar jndi-ldap-${javaver}.jar
      ln -s /usr/java/default/jre/lib/rt.jar jndi-rmi-${javaver}.jar
      ln -s /usr/java/default/jre/lib/jsse.jar jsse-${javaver}.jar
      ln -s /usr/java/default/jre/lib/rt.jar sasl-${javaver}.jar
      ln -s jaas-${javaver}.jar jaas.jar
      ln -s jce-${javaver}.jar jce.jar
      ln -s jdbc-stdext-${javaver}.jar jdbc-stdext.jar
      ln -s jndi-${javaver}.jar jndi.jar
      ln -s jndi-cos-${javaver}.jar jndi-cos.jar
      ln -s jndi-ldap-${javaver}.jar jndi-ldap.jar
      ln -s jndi-rmi-${javaver}.jar jndi-rmi.jar
      ln -s jsse-${javaver}.jar jsse.jar
      ln -s sasl-${javaver}.jar sasl.jar
      )

      mkdir /usr/lib/jvm-exports/jre-${javaver}-sun;
      (
      cd /usr/lib/jvm-exports/jre-${javaver}-sun;
      ln -s /usr/java/default/lib/rt.jar jaas-${javaver}.jar
      ln -s /usr/java/default/lib/jce.jar jce-${javaver}.jar
      ln -s /usr/java/default/lib/rt.jar jdbc-stdext-${javaver}.jar
      ln -s /usr/java/default/lib/rt.jar jdbc-stdext-3.0.jar
      ln -s /usr/java/default/lib/rt.jar jndi-${javaver}.jar
      ln -s /usr/java/default/lib/rt.jar jndi-cos-${javaver}.jar
      ln -s /usr/java/default/lib/rt.jar jndi-ldap-${javaver}.jar
      ln -s /usr/java/default/lib/rt.jar jndi-rmi-${javaver}.jar
      ln -s /usr/java/default/lib/jsse.jar jsse-${javaver}.jar
      ln -s /usr/java/default/lib/rt.jar sasl-${javaver}.jar
      ln -s jaas-${javaver}.jar jaas.jar
      ln -s jce-${javaver}.jar jce.jar
      ln -s jdbc-stdext-${javaver}.jar jdbc-stdext.jar
      ln -s jndi-${javaver}.jar jndi.jar
      ln -s jndi-cos-${javaver}.jar jndi-cos.jar
      ln -s jndi-ldap-${javaver}.jar jndi-ldap.jar
      ln -s jndi-rmi-${javaver}.jar jndi-rmi.jar
      ln -s jsse-${javaver}.jar jsse.jar
      ln -s sasl-${javaver}.jar sasl.jar
      )

      # Java SDK
      alternatives --install /usr/bin/javac javac /usr/java/default/bin/javac 32000 \
      --slave /usr/lib/jvm/java java_sdk /usr/java/default \
      --slave /usr/lib/jvm-exports/java java_sdk_exports /usr/lib/jvm-exports/java-${javaver}-sun \
      --slave /usr/bin/appletviewer appletviewer /usr/java/default/bin/appletviewer \
      --slave /usr/bin/apt apt /usr/java/default/bin/apt \
      --slave /usr/bin/extcheck extcheck /usr/java/default/bin/extcheck \
      --slave /usr/bin/jar jar /usr/java/default/bin/jar \
      --slave /usr/bin/jarsigner jarsigner /usr/java/default/bin/jarsigner \
      --slave /usr/bin/javadoc javadoc /usr/java/default/bin/javadoc \
      --slave /usr/bin/javah javah /usr/java/default/bin/javah \
      --slave /usr/bin/javap javap /usr/java/default/bin/javap \
      --slave /usr/bin/jconsole jconsole /usr/java/default/bin/jconsole \
      --slave /usr/bin/jdb jdb /usr/java/default/bin/jdb \
      --slave /usr/bin/jhat jhat /usr/java/default/bin/jhat \
      --slave /usr/bin/jinfo jinfo /usr/java/default/bin/jinfo \
      --slave /usr/bin/jmap jmap /usr/java/default/bin/jmap \
      --slave /usr/bin/jps jps /usr/java/default/bin/jps \
      --slave /usr/bin/jrunscript jrunscript /usr/java/default/bin/jrunscript \
      --slave /usr/bin/jsadebugd jsadebugd /usr/java/default/bin/jsadebugd \
      --slave /usr/bin/jstack jstack /usr/java/default/bin/jstack \
      --slave /usr/bin/jstat jstat /usr/java/default/bin/jstat \
      --slave /usr/bin/jstatd jstatd /usr/java/default/bin/jstatd \
      --slave /usr/bin/jvisualvm jvisualvm /usr/java/default/bin/jvisualvm \
      --slave /usr/bin/native2ascii native2ascii /usr/java/default/bin/native2ascii \
      --slave /usr/bin/rmic rmic /usr/java/default/bin/rmic \
      --slave /usr/bin/schemagen schemagen /usr/java/default/bin/schemagen \
      --slave /usr/bin/serialver serialver /usr/java/default/bin/serialver \
      --slave /usr/bin/wsgen wsgen /usr/java/default/bin/wsgen \
      --slave /usr/bin/wsimport wsimport /usr/java/default/bin/wsimport \
      --slave /usr/bin/xjc xjc /usr/java/default/bin/xjc \
      --slave /usr/share/man/man1/appletviewer.1 appletviewer.1 /usr/java/default/man/man1/appletviewer.1 \
      --slave /usr/share/man/man1/apt.1 apt.1 /usr/java/default/man/man1/apt.1 \
      --slave /usr/share/man/man1/extcheck.1 extcheck.1 /usr/java/default/man/man1/extcheck.1 \
      --slave /usr/share/man/man1/jar.1 jar.1 /usr/java/default/man/man1/jar.1 \
      --slave /usr/share/man/man1/jarsigner.1 jarsigner.1 /usr/java/default/man/man1/jarsigner.1 \
      --slave /usr/share/man/man1/javac.1 javac.1 /usr/java/default/man/man1/javac.1 \
      --slave /usr/share/man/man1/javadoc.1 javadoc.1 /usr/java/default/man/man1/javadoc.1 \
      --slave /usr/share/man/man1/javah.1 javah.1 /usr/java/default/man/man1/javah.1 \
      --slave /usr/share/man/man1/javap.1 javap.1 /usr/java/default/man/man1/javap.1 \
      --slave /usr/share/man/man1/jconsole.1 jconsole.1 /usr/java/default/man/man1/jconsole.1 \
      --slave /usr/share/man/man1/jdb.1 jdb.1 /usr/java/default/man/man1/jdb.1 \
      --slave /usr/share/man/man1/jhat.1 jhat.1 /usr/java/default/man/man1/jhat.1 \
      --slave /usr/share/man/man1/jinfo.1 jinfo.1 /usr/java/default/man/man1/jinfo.1 \
      --slave /usr/share/man/man1/jmap.1 jmap.1 /usr/java/default/man/man1/jmap.1 \
      --slave /usr/share/man/man1/jps.1 jps.1 /usr/java/default/man/man1/jps.1 \
      --slave /usr/share/man/man1/jrunscript.1 jrunscript.1 /usr/java/default/man/man1/jrunscript.1 \
      --slave /usr/share/man/man1/jsadebugd.1 jsadebugd.1 /usr/java/default/man/man1/jsadebugd.1 \
      --slave /usr/share/man/man1/jstack.1 jstack.1 /usr/java/default/man/man1/jstack.1 \
      --slave /usr/share/man/man1/jstat.1 jstat.1 /usr/java/default/man/man1/jstat.1 \
      --slave /usr/share/man/man1/jstatd.1 jstatd.1 /usr/java/default/man/man1/jstatd.1 \
      --slave /usr/share/man/man1/native2ascii.1 native2ascii.1 /usr/java/default/man/man1/native2ascii.1 \
      --slave /usr/share/man/man1/rmic.1 rmic.1 /usr/java/default/man/man1/rmic.1 \
      --slave /usr/share/man/man1/schemagen.1 schemagen.1 /usr/java/default/man/man1/schemagen.1 \
      --slave /usr/share/man/man1/serialver.1 serialver.1 /usr/java/default/man/man1/serialver.1 \
      --slave /usr/share/man/man1/wsgen.1 wsgen.1 /usr/java/default/man/man1/wsgen.1 \
      --slave /usr/share/man/man1/wsimport.1 wsimport.1 /usr/java/default/man/man1/wsimport.1 \
      --slave /usr/share/man/man1/xjc.1 xjc.1 /usr/java/default/man/man1/xjc.1

      alternatives --install /usr/lib/jvm/java-sun java_sdk_sun /usr/java/default 32000 \
      --slave /usr/lib/jvm-exports/java-sun java_sdk_sun_exports /usr/lib/jvm-exports/java-${javaver}-sun

      alternatives --install /usr/lib/jvm/java-${javaver} java_sdk_${javaver} /usr/java/default 32000 \
      --slave /usr/lib/jvm-exports/java-${javaver} java_sdk_${javaver}_exports /usr/lib/jvm-exports/java-${javaver}-sun

      # Java Runtime Environment
      alternatives --verbose --install /usr/bin/java java /usr/java/default/jre/bin/java 32000 \
      --slave /usr/lib/jvm/jre jre /usr/java/default/jre \
      --slave /usr/lib/jvm-exports/jre jre_exports /usr/lib/jvm-exports/jre-${javaver}-sun \
      --slave /usr/bin/javaws javaws /usr/java/default/bin/javaws \
      --slave /usr/bin/ControlPanel ControlPanel /usr/java/default/bin/ControlPanel \
      --slave /usr/bin/keytool keytool /usr/java/default/bin/keytool \
      --slave /usr/bin/orbd orbd /usr/java/default/bin/orbd \
      --slave /usr/bin/pack200 pack200 /usr/java/default/bin/pack200 \
      --slave /usr/bin/policytool pack200 /usr/java/default/bin/policytool \
      --slave /usr/bin/rmid rmid /usr/java/default/bin/rmid \
      --slave /usr/bin/rmiregistry rmiregistry /usr/java/default/bin/rmiregistry \
      --slave /usr/bin/servertool servertool /usr/java/default/bin/servertool \
      --slave /usr/bin/tnameserv tnameserv /usr/java/default/bin/tnameserv \
      --slave /usr/bin/unpack200 unpack200 /usr/java/default/bin/unpack200 \
      --slave /usr/share/man/man1/java.1 java.1 /usr/java/default/man/man1/java.1 \
      --slave /usr/share/man/man1/keytool.1 keytool.1 /usr/java/default/man/man1/keytool.1 \
      --slave /usr/share/man/man1/orbd.1 orbd.1 /usr/java/default/man/man1/orbd.1 \
      --slave /usr/share/man/man1/pack200.1 pack200.1 /usr/java/default/man/man1/pack200.1 \
      --slave /usr/share/man/man1/policytool.1 policytool.1 /usr/java/default/man/man1/policytool.1 \
      --slave /usr/share/man/man1/rmid.1 rmid.1 /usr/java/default/man/man1/rmid.1 \
      --slave /usr/share/man/man1/rmiregistry.1 rmiregistry.1 /usr/java/default/man/man1/rmiregistry.1 \
      --slave /usr/share/man/man1/servertool.1 servertool.1 /usr/java/default/man/man1/servertool.1 \
      --slave /usr/share/man/man1/tnameserv.1 tnameserv.1 /usr/java/default/man/man1/tnameserv.1 \
      --slave /usr/share/man/man1/unpack200.1 unpack200.1 /usr/java/default/man/man1/unpack200.1

      alternatives --verbose --install /usr/lib/jvm/jre-sun jre_sun /usr/java/default/jre 32000 \
      --slave /usr/lib/jvm-exports/jre-sun jre_sun_exports /usr/lib/jvm-exports/jre-${javaver}-sun

      alternatives --verbose --install /usr/lib/jvm/jre-${javaver} jre_${javaver} /usr/java/default/jre 32000 \
      --slave /usr/lib/jvm-exports/jre-${javaver} jre_${javaver}_exports /usr/lib/jvm-exports/jre-${javaver}-sun

      # Java browser plugin
      alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/default/jre/lib/i386/libnpjp2.so 32000

      unset javaver

      Reply
    9. [code]# ls -la /usr/java/jre1.6.0_24/lib/amd64/libnpjp2.so && alternatives –display libjavaplugin.so.x86_64
      -rwxr-xr-x. 1 root root 81456 Feb 2 19:30 /usr/java/jre1.6.0_24/lib/amd64/libnpjp2.so
      libjavaplugin.so.x86_64 – status is auto.
      link currently points to /usr/java/jdk1.6.0_24/jre/lib/amd64/libnpjp2.so
      /usr/java/jdk1.6.0_24/jre/lib/amd64/libnpjp2.so – priority 20000
      /usr/java/jre1.6.0_24/lib/amd64/libnpjp2.so – priority 20000
      Current `best’ version is /usr/java/jdk1.6.0_24/jre/lib/amd64/libnpjp2.so.[/code]

      Reply
      • Hi bob,

        Actually this sounds SELinux problem so try run following command as root:

        
        chcon -t execmem_exec_t '/usr/lib64/firefox-3.6/firefox'
        

        And restart Firefox.

        Reply
    10. I’ve been trying like heck to get this working because I need Java for work, but I can’t seem to make any progress no matter what I try.

      I get the following:

      [[email protected] ~]$ java -version
      java version "1.6.0_24"


      [[email protected] ~]$ javac -version
      javac 1.6.0_24

      [[email protected] ~]$ ls -la /usr/java/jre1.6.0_24/lib/amd64/libnpjp2.so
      -rwxr-xr-x. 1 root root 81456 Feb 2 20:30 /usr/java/jre1.6.0_24/lib/amd64/libnpjp2.so

      [[email protected] ~]$ alternatives --display libjavaplugin.so.x86_64
      libjavaplugin.so.x86_64 - status is manual.
      link currently points to /usr/java/jre1.6.0_24/lib/amd64/libnpjp2.so
      /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/lib/amd64/IcedTeaPlugin.so - priority 16000
      /usr/java/default/lib/amd64/libnpjp2.so - priority 20000
      /usr/java/jre1.6.0_24/lib/amd64/libnpjp2.so - priority 20000
      Current `best' version is /usr/java/default/lib/amd64/libnpjp2.so.

      But I get nothing in FF 3.6, FF 4, or Chrome. Anyone have any ideas?

      Reply
      • Hi jjw3579,

        Try run following as root:

        
        execstack -c /usr/lib64/mozilla/plugins/libjavaplugin.so
        
        Reply
    11. Scientific Linux 6.0: 64-bit
      Regarding my earlier installation failure on 64-bit Scientific Linux 6.0 and your proposed solution based on SEL: I had SELinux configured in permissive mode, so I am inclined to think that SEL isn’t the root of the problem. I am not working on the SL6 box at present, so I cannot pursue your proposed solution right now.

      <Fedora 14: 64-bit
      I am presently trying to perform your 64-bit JRE installation method on a fresh install of Fedora 14 with all of the current updates. I have followed your 64-bit instructions but I am still having problems. It looks like Java Web Start is not being installed:

      # java -version
      java version "1.6.0_24"
      Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
      Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

      # javac -version
      -bash: javac: command not found

      # javaws
      -bash: javaws: command not found

      # alternatives --config java

      There are 2 programs which provide 'java'.

      Selection Command
      -----------------------------------------------
      1 /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
      *+ 2 /usr/java/jre1.6.0_24/bin/java

      Enter to keep the current selection[+], or type selection number:

      I understand that javac should not be installed when I am installing a JRE.
      What about javaws?

      Looking at your instructions, the 64-bit installation instructions do not appear to include a command that installs javaws. In section 4b, you have provided installation instructions for javaws on 32-bit platforms but not on 64-bit platforms. Is there a similar installation instruction that needs to be performed on 64-bit platforms?

      I also thought I’d point out that the Post-Installation Setup section of the guide appears correct for users of the JDK but doesn’t seem correct for people installing the JRE.

      Thanks for your help.

      Reply
      • Hi bob,

        Sun Java 64-bit version does not provide javaws, that’s why there is no installation instructions for that.

        I fixed post-installation setup, added also JRE.

        Reply
        • I installed jdk 1.6.0_30 64bit and execute
          ls /usr/java/jdk1.6.0_30/bin
          and I find “javaws”

          Reply
    12. Forgot to mention: the 64-bit installation on F14 is also not providing the Firefox plugin. about:config lists no java plugins for Firefox 3.6.16.

      Reply
      • Hi bob,

        Oracle Java 64-bit installation does provide Mozilla plugin, please post output of following commands:

        
        alternatives --display libjavaplugin.so.x86_64
        

        Check also that the Java plugin really exists and check your /var/log/audit/audit.log for SELinux messages.

        Reply
    13. Hi, everyone, i would really appreciate if someone can give me an advice about this problem that is driving me crazy.

      I’ve installed Fedora 14 (Laughlin), and successfully installed JDK (following steps above), but sometimes (not always) when i execute Eclipse or Netbeans or Glassfish, a kill signal is send to the process because java runtime had an error (see error below).

      Thanks in advance for the help,

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x00007f602dca3761, pid=4054, tid=140051033437952
      #
      # JRE version: 6.0_25-b06
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (20.0-b11 mixed mode linux-amd64 compressed oops)
      # Problematic frame:
      # V [libjvm.so+0x656761] PhaseLive::compute(unsigned)+0x241
      #
      # An error report file with more information is saved as:
      # /opt/apache-tomcat/bin/hs_err_pid4054.log
      #
      # If you would like to submit a bug report, please visit:
      # http://java.sun.com/webapps/bugreport/crash.jsp
      #

      Reply
    14. When I tipe sh jdk-6u25-linux-i586-rpm.bin, after pressing enter the error is:

      jdk-6u25-linux-i586-rpm.bin: line 94: 3128 Annullato (core dumped) “$javaprefix/bin/java” com.sun.servicetag.Installer -source “$source” “$register_option” > /dev/null 2>&1

      Done.

      How can I solve this?

      Reply
      • Hi Francesco,

        Actually your installation is OK, but you (and also I) got this with jdk-6u25-linux-i586-rpm.bin and jdk-6u25-linux-x64-rpm.bin because installer maybe try to open browser and failed. So you could continue your installation and get JDK working… :)

        Reply
    15. […] Install Sun/Oracle Java JDK/JRE 6u25 on Fedora 15, CentOS/RHEL 5.6/6 […]

      Reply
1 2 3 4 5

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close