besides having your own local copy of java, I have found a way to download directly from
oracle.com but it is quite heavyweight. It requires the installation of firefox, Xvfb (virtual X11 server), and the watir-webdriver and headless gems. There is no way around installing firefox as the oracle site requires _javascript_ to agree to their terms.
I am really wondering if this solution is so invasive that no one will use it. If someone has a better solution, pls let me know!
$ sudo apt-get install xvfb
$ gem install watir-webdriver headless
# downloads jdk 1.7
require 'watir-webdriver' require 'headless' headless = Headless. new |
profile = "Selenium::WebDriver::Firefox::Profile.new
profile['browser.download.folderList'] = 2
profile['browser.download.dir'] = '/tmp'
profile['browser.helperApps.neverAsk.saveToDisk'] = "application/x-tar-gz, application/x-gzip, application/x-compressed"
b = Watir::Browser.new :firefox, :profile =">" profile
b.radio(:name => "agreementDivjdk-7u3-oth-JPR").click
b.radio(:name => "agreementjdk-7u3-oth-JPR").click
b.a(:name => "jdk-7u3-oth-JPRXXXjdk-7u3-linux-x64.tar.gz").click
# somehow need to block until file totally downloaded
headless.destroy
On Tue, Mar 27, 2012 at 10:10 AM, Bryan Berry
<
" target="_blank">
> wrote:
in the meantime, you can work around this by downloading the tarball to a local server than then overriding the node['java'][jdk']['6']['x86_64']['url'] attribute like this or in a role
node['java'][jdk']['6']['x86_64']['url'] = 'http://your_local_server/java_tarball.tar.gz'
On Tue, Mar 27, 2012 at 10:05 AM, Bryan Berry
<
" target="_blank">
> wrote:
dear fellow chefs,
the java::oracle recipe is now broken as Oracle requires a browser cookie set upon accepting license terms
I will be working on it
that really chaps my hide