[wpkg-users] Java struggle

Rainer Meier r.meier at wpkg.org
Tue Jan 15 10:44:02 CET 2013


Hi Jürgen,

On 15.01.2013 10:20, jurgen.depicker at let.be wrote:
> Dear all,
>
> I'm a bit in stress and cannot weed out the page at http://wpkg.org/Javawhich is
> probably one of the most complex pages on the wiki  :-).  Does anyone have a
> more recent package description to upgrade both 32 and 64 bit hosts to the
> latest java release, that's to say jre7u11 according to
> http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1880261.html?
>   There aren't any msi's there, and there's no package on the site without msi's
> for 64bit hosts.
>
> I'm pretty sure (hopeful) someone allready has a more up to date package
> description; if you mail it to me, I'll update the page on the wiki happily!

I am personally using a custom set of simple cmd scripts to handle Java 
installation. I have uploaded a snapshot of it here:
<http://dl.dropbox.com/u/2015365/JavaSE.zip>

Using it is pretty simple:
First of all run the Windows exe installer and when the install window pops up 
grab the MSI files from %LocalAppData%Low folder 
(c:\users\<username>\AppData\LocalLow\Sun\Java).
Note: I found when installing from network there is (or was?) some bug that 
msiexec could not find the jre.msi file during JRE installation. So I had to 
rename the file to "jre.msi" so it works fine now.

Then place all the installer files in corresponding sub-folders like
jre1.7.0_11_x64\jre.msi
jre1.7.0_11_x86\jre.msi
...

Have a look at settings.cmd. Here you just need to define what is installed 
and/or uninstalled.
UNINSTALL_* parameters: The uninstall code uses WMI to clean all versions 
installed (also future ones hopefully).

INSTALL_* parameters: Select what you would like to install (JRE/JDK; version 6/7).

WEB_JAVA: Select whether or not you want to enable the java plugin in browsers 
(see Java control panel in latest 1.7.0_10 or newer which allows to disable Java 
Plugins globally).

INSTALL_32_AND_64_BIT: lets you select whether on 64-bit systems only 64-bit 
edition or 64-bit and 32-bit editions are installed in parallel.

JAVA*_VERSION: Adapt when new java versions are released

JRE*:
JDK*:
Paths to installers. Typically it's sufficient to adapt JAVA*_VERSION variables. 
Please note that for JRE the MSI file is renamed to jre.msi (see above).



So to install new versions simply adapt settings.xml and place MSI files in 
correct location.

JRE.xml WPKG package is included as well (extremely basic version).


br,
Rainer



More information about the wpkg-users mailing list