Fine tune oracle java install

    + add option to change cookie which is a requirement for different
    versions.