Oracle Java RPM

Home » CentOS » Oracle Java RPM
CentOS 8 Comments

Hi Everyone,

Years ago the recommended way to install Sun’s java was to install from the tar.gz file because the RPM they supplied did some bad things
(clobbered other files or something…can’t remember the details). Is this still the case with Oracle’s java RPM, or is it now safe to install?

Ranbir

8 thoughts on - Oracle Java RPM

  • Since the Oracle Java packages are packaged by RH in RHEL, we use those packages. I kinda wish there was a way to get those Packages in CentOS too.

  • I’ve been using the Oracle RPMs. From what I can tell they restrict their writes to /usr/java (plus making symlinks in /usr/bin).

    –keith

  • I use this :

    http://awel.domblogger.net/7/special/repoview/oracle-java-jdk.html

    It’s a nosrc.rpm that makes an rpm from the x64 binary tarball.

    You have to update the spec file for the actual version being used.

    I don’t know if it is the right solution for everyone but it meets my needs just fine, every new Java release I just build it on one machine and distribute the resulting rpm to my other CentOS boxes that need Oracle Java.

  • Does it use the ‘alternatives’ system for the symlinks in /usr/bin? You can check quickly by looking at where the symlink /usr/bin/java points to, if it points directly to the java executable, then it isn’t using ‘alternatives’.


    Jonathan Billings

  • Since a few years back I always use the rpm. Works fine on my plain-vanilla CentOS-systems. YMMV as they say though.

  • we’re happy using the RHEL/CentOS provided OpenJDK 6 or 7, all our j2se stuff just works….

    ok, we had one anomaly relating to figuring out the local time zone, long story short, the lowest impact fix was for root to

    # echo “America/Los_Angeles” > /etc/timezone

    (using your local canonical timezone name, of course!)