/build/static/layout/Breadcrumb_cap_w.png

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login
Views: 21.8k  |  Created: 10/30/2015 by: Dries.Willems

Average Rating: 0
Java 8 has 1 inventory records, 11 Questions, 0 Blogs and 0 links. Please help add to this by sharing more!

Deployment Tips (2)

Most Common Setup Type
Windows Installer (Delivered as an EXE)
Average Package Difficulty Rating
Rated 3 / 5 (Average) based on 2 ratings
Most Commonly Reported Deployment Method
Windows Installer Command Line (No MST)
2
Note
So I just got the K1000 and java doesn't install with the system account after 8.40 or something like that. So I had to build a script that installed it silently for me with the switches for the exe since the java msi doesn't exactly work the same now when you try to extract it.

so i pretty muched launch a program with cmd.exe /c "jre-8u66-windows-i586.exe INSTALL_SILENT=1 STATIC=1 AUTO_UPDATE=0 WEB_JAVA_SECURITY_LEVEL=H EULA=1 REBOOT=0 SPONSORS=1 /Lv C:\JAVA.log

and with admin credentials instead of system. I deployed it to my test machine and wala it worked! Hope this helps somebody because I couldn't find anything on the interwebs.
Setup Information:
Setup Type: Windows Installer (Delivered as an EXE)
Deployment Method Used: Vendor Provided Command Line (switch driven)
Deployment Difficulty: Somewhat Difficult
Platform(s): Windows
  • If you check the log, you will find out that it will place the file under the system profile (explained in my initial post)

    When using SCCM and installing it with SYSTEM credentials, the java installer decided to place the msi's under the appdata from the install account.
    Because appdata from the System account is under C:\Windows\System32, it would not do the correct copy actions.
    Also it was searching for java.settings.cfg under C:\ProgramData\Oracle\Java , so we needed to place the file there before installing.

    C:\windows\system32\config\systemprofile\AppData\LocalLow\Oracle\Java\
    ... - Dries.Willems 8 years ago
    • Your solution works and everything. I just like mine since it's simplified and what not. - aric89 8 years ago
0
Note
In case you are wondering, normally I would open the EXE's and extract the MSI's.
But today I decided to use the EXE's with the default commands that Oracle delivers us.

Had some problems with SCCM depencies and with little time, I used a batch file.
When using SCCM and installing it with SYSTEM credentials, the java installer decided to place the msi's under the appdata from the install account.
Because appdata from the System account is under C:\Windows\System32, it would not do the correct copy actions.
Also it was searching for java.settings.cfg under C:\ProgramData\Oracle\Java , so we needed to place the file there before installing.

I also added some custom settings to the Java configuration.
Placing the file under APPDATA of the current user.

Detection Method:
Exist
C:\ProgramData\Oracle\Java\Settings_Java8u66_Installed.txt
Exist
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\4EA42A62D9304AC4784BF2381208660F
Exist
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\4EA42A62D9304AC4784BF2681408660F

Installing:
cmd.exe /c InstallJavaRE8U66.cmd

Batchfile InstallJavaRE8U66.cmd
------------------------------------------------------------------
xcopy java.settings.cfg "%ProgramData%\Oracle\Java\"* /I /S /Y /C /R
xcopy .\jre1.8.0_66* "C:\windows\system32\config\systemprofile\AppData\LocalLow\Oracle\Java\"* /I /S /Y /C /R
xcopy .\jre1.8.0_66_x64* "C:\windows\system32\config\systemprofile\AppData\LocalLow\Oracle\Java\"* /I /S /Y /C /R
timeout.exe /T 30 /NOBREAK
jre-8u66-windows-x64.exe /s INSTALL_SILENT=1 STATIC=1 AUTO_UPDATE=0 WEB_ANALYTICS=0 REBOOT=0 NOSTARTMENU=1 SPONSORS=0 /L C:\Windows\Temp\Install_SDC_Oracle_JavaRE_1.8.0.66_01.00_EN_x64.log
jre-8u66-windows-i586.exe /s INSTALL_SILENT=1 STATIC=1 AUTO_UPDATE=0 WEB_ANALYTICS=0 REBOOT=0 NOSTARTMENU=1 SPONSORS=0 /L C:\Windows\Temp\Install_SDC_Oracle_JavaRE_1.8.0.66_01.00_EN_x86.log
type NUL > %ProgramData%\Oracle\Java\Settings_Java8u66_Installed.txt
------------------------------------------------------------------

java.settings.cfg -> Place this file under C:\ProgramData\Oracle\Java
------------------------------------------------------------------
AUTO_UPDATE=0
INSTALL_SILENT=1
NOSTARTMENU=1
SPONSORS=0
WEB_ANALYTICS=0
------------------------------------------------------------------

deployment.properties -> Place this file under %userprofile%\appdata\locallow\Sun\Java\Deployment\deployment.properties
------------------------------------------------------------------
#deployment.properties
#Fri Oct 23 18:21:40 CEST 2015
deployment.modified.timestamp=1445617300114
deployment.roaming.profile=false
deployment.security.mixcode=DISABLE
deployment.security.revocation.check=NO_CHECK
deployment.version=8
install.disable.sponsor.offers=true
deployment.browser.path=C\:\\Program Files\\Internet Explorer\\iexplore.exe
#Java Deployment jre's
#Fri Oct 23 18:21:40 CEST 2015
deployment.javaws.jre.0.registered=true
deployment.javaws.jre.0.platform=1.8
deployment.javaws.jre.0.osname=Windows
deployment.javaws.jre.0.path=C\:\\Program Files\\Java\\jre1.8.0_66\\bin\\javaw.exe
deployment.javaws.jre.0.product=1.8.0_66
deployment.javaws.jre.0.osarch=amd64
deployment.javaws.jre.0.location=http\://java.sun.com/products/autodl/j2se
deployment.javaws.jre.0.enabled=true
deployment.javaws.jre.0.args=
------------------------------------------------------------------

My blog:
http://dries.metrico.be/#post96

https://docs.oracle.com/javase/8/docs/technotes/guides/install/config.html#table_config_file_options
http://www.itninja.com/software/oracle/java-8/8-update-45
http://serverfault.com/questions/721388/java-msi-install-error-3-2147287037
Setup Information:
Setup Type: Windows Installer (Delivered as an EXE)
Deployment Method Used: Windows Installer Command Line (No MST)
Deployment Difficulty: Very Easy
Platform(s): Windows
  • I wanted to thank you for taking the time to configure this. We all know how Java can be.

    What is the deployment.properties for? I don't see it in the batch file being copied to where you are saying to put it to. - JHBPJF 8 years ago
  • I've added a small script to link the "right" LocalLow Path to SysWOW64


    if %UserName% == %ComputerName%$ (

    rmdir /s /q %windir%\SysWOW64\config\systemprofile\AppData\LocalLow\Oracle
    rmdir /s /q %windir%\SysWOW64\config\systemprofile\AppData\LocalLow\Sun

    mkdir %windir%\SysWOW64\config\systemprofile\AppData\LocalLow\

    mkdir %USERPROFILE%\AppData\LocalLow\Oracle
    mkdir %USERPROFILE%\AppData\LocalLow\Sun

    cd %windir%\SysWOW64\config\systemprofile\AppData\LocalLow

    mklink /j Oracle %USERPROFILE%\AppData\LocalLow\Oracle
    mklink /j Sun %USERPROFILE%\AppData\LocalLow\Sun

    ) - Phil10 8 years ago

Inventory Records (1)

View inventory records anonymously contributed by opt-in users of the K1000 Systems Management Appliance.

Versions

Java 8

Version

8 Update 66

Questions & Answers (11)

Questions & Answers related to Oracle Java 8

0
ANSWERS
2
ANSWERS
2
ANSWERED
0
ANSWERS
2
ANSWERED
2
ANSWERS
9
ANSWERED
0
ANSWERS
1
ANSWERS
4
ANSWERS

Blogs (0)

Blog posts related to Oracle Java 8

Reviews (0)

Reviews related to Oracle Java 8

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ