socrata-cookbooks/java — pull request #131 by cupcicm (2014-01-23 17:11:09+00:00)
Title: Fix JDK install on Windows.

I think that https://github.com/socrata-cookbooks/java/pull/100 broke the windows install when using a JDK installer.

For example, if I download both a JRE and a JDK here : http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html and here http://java.com/en/download/manual.jsp#win
and then run both

.\jdk-7u51-windows-x64.exe /s INSTALLDIR=\"C:\java\"
and
.\jre-7u51-windows-x64.exe /s INSTALLDIR=\"C:\java\"

The second one works, but the first one doesn't. It does when I remove the backward slashes.

The fix seems to be http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4966488

I tested this change with both a JDK and a JRE installer, and both were correctly installed.