boxen / puppet-java

Install Java
http://boxen.github.com
MIT License
13 stars 55 forks source link

JRE/JDK packages fail to install on Yosemite #45

Closed dgoodlad closed 9 years ago

dgoodlad commented 10 years ago

The official JRE and JDK packages fail to install on Yosemite. Their install scripts contain a poorly-written version check, which compares OS X versions as strings. Since "10.10", when compared as a string, is less than "10.7.3", the packages refuse to install.

This can be resolved in one of a few ways:

  1. Modify the version check in Distribution file in the two .pkgs and distribute modified .dmgs
  2. Wait for Oracle to update their official releases
  3. Split up the JDK/JRE installs, and use Apple's Java distribution to get at least the JRE installed
webflo commented 10 years ago

According to https://community.oracle.com/thread/3568196 the latest build on https://jdk8.java.net/download.html should work.

dgoodlad commented 10 years ago

@webflo Thanks for the heads-up, but that's only for JDK8, and I'm not sure it's the right time to do a major java runtime version bump. Looks like they're aware of the issue and will be shipping a fix to jdk7 soon:

https://jdk7.java.net/download.html

Note: Installation of Java on Mac OS X 10.10 currently fails with this message: "Java from Oracle requires Mac OS X 10.7.3 or later" This will be resolved in an upcoming build of 7u60.

dgoodlad commented 10 years ago

For testing, I have modified the jdk/jre 7u67 packages to remove the os x version check. I don't plan to keep these changes in place, though, given Oracle's stated plans to fix this issue.

petems commented 9 years ago

@dgoodlad I think this can be closed, as it's fixed by the work for #49 I think?

MikeMcQuaid commented 9 years ago

Fixed by #49.