Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to update to newer version of java8 #63

Open
domingusj opened this issue Dec 28, 2015 · 5 comments
Open

unable to update to newer version of java8 #63

domingusj opened this issue Dec 28, 2015 · 5 comments

Comments

@domingusj
Copy link

I started using this module to install Oracle Java 8 instead of 7 and the first pass was fine. Today, I tried updating to version 66 from 62 and it looks like puppet is installing the newer version but not setting the new version to the system default (it remains 62). It correctly installs version 66 on new nodes that did not have the previous version. Any ideas? Any help would be appreciated.

Here is what I'm using:

class { 'jdk_oracle':

      version        => '8',

      default_java   => true,

      install_dir    => '/usr/lib/jvm',

      version_update => '66',

      version_build  => '17',

      platform       => 'x64',

    }
@zenbiking
Copy link

I'm experiencing similar issues on Ubuntu 14.04.

I performed an install with the version set to 8, and no other options set. This results were that jdk 1.8.0_11 was installed configured correctly.

I then changed the install to point to the latest version_update and version_build on Oracle's website (at this time it was 74 build 02). This installed the new version and build as expected, but /etc/alternatives was still pointed at the previous version.

Running "update-alternatives --config java" shows

 Selection    Path                       Priority   Status
------------------------------------------------------------
* 0            /opt/jdk1.8.0_11/bin/java   20000     auto mode
  1            /opt/jdk1.8.0_11/bin/java   20000     manual mode
  2            /opt/jdk1.8.0_74/bin/java   20000     manual mode

So it's adding it as told, but the action isn't what is expected when upgrading to a new version.

@fraenki
Copy link
Contributor

fraenki commented Feb 16, 2016

This was fixed just recently, but no release contains the fix yet (see: #55). You may want to download the current repo snapshot and see if it fixes the issue for you.

@tylerwalts: Maybe it's time for 1.4.1? :)

@zenbiking
Copy link

Thanks for the update @fraenki. Tested and works as advertised. :)

@030
Copy link

030 commented Mar 20, 2016

Neither 8.73, nor 8u74 can be installed:

Error: wget -c --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u74-b12/jdk-8u74-linux-x64.tar.gz" -O jdk-8u74-linux-x64.tar.gz returned 8 instead of one of [0]
Error: /Stage[main]/Jdk_oracle/Jdk_oracle::Install[jdk_oracle]/Exec[get_jdk_installer_8]/returns: change from notrun to 0 failed: wget -c --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u74-b12/jdk-8u74-linux-x64.tar.gz" -O jdk-8u74-linux-x64.tar.gz returned 8 instead of one of [0]

@vakopian
Copy link

+1 to release 1.4.1 for the fix in #55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants