/build/static/layout/Breadcrumb_cap_w.png

Disable JRE in Windows Java control panel??

Is there anyway to automate disabling certain versions of JRE in the Java control panel application?  i have a situation were i need to install multiple versions of Java but only need one JRE setting enabled, thanks.

KwaXP3.png




2 Comments   [ + ] Show comments
  • i tried what you suggested and it didnt work, i also used a transform mst to point the deployment.properties file to c:\windows\sun\deployment. Any other suggestions?

    Thanks - sal623 8 years ago
    • Can you post the steps as how you did? I tried in my lab before posting and it works like charm. - apptopack 8 years ago
  • Sure. Im using java 7 update 71.

    My CMD file

    Creates folder structure "C:\WINDOWS\Sun\Java\Deployment"
    Copies deployment.config and deployment.properties files to that directory

    install the MSI with a transform file

    My Transform file
    added this info to properties field
    deployment.properties C:\Windows\Sun\Java\Deployment\deployment.properties
    deployment.user.security.exception.sites C:\Windows\Sun\Java\Deployment\exception.sites

    My deployment.config file
    deployment.system.config=file\:C\:/Windows/Sun/Java/Deployment/deployment.properties


    deployment.properties file
    #deployment.properties
    #Thu Nov 05 13:24:37 EST 2015
    deployment.modified.timestamp=1446747877874
    #Java Deployment jre's
    #Thu Nov 05 13:24:37 EST 2015
    deployment.javaws.jre.1.location=http\://java.sun.com/products/autodl/j2se
    deployment.javaws.jre.0.args=
    deployment.javaws.jre.0.registered=true
    deployment.javaws.jre.2.enabled=false
    deployment.javaws.jre.1.args=
    deployment.javaws.jre.1.enabled=false
    deployment.javaws.jre.2.args=
    deployment.javaws.jre.2.platform=1.5
    deployment.javaws.jre.1.registered=true
    deployment.javaws.jre.2.osname=Windows
    deployment.javaws.jre.2.osarch=x86
    deployment.javaws.jre.0.osarch=x86
    deployment.javaws.jre.0.osname=Windows
    deployment.javaws.jre.2.location=http\://java.sun.com/products/autodl/j2se
    deployment.javaws.jre.1.product=1.6.0_31
    deployment.javaws.jre.2.registered=true
    deployment.javaws.jre.0.platform=1.7
    deployment.javaws.jre.0.path=C\:\\Program Files\\Java\\jre7\\bin\\javaw.exe
    deployment.javaws.jre.0.location=http\://java.sun.com/products/autodl/j2se
    deployment.javaws.jre.1.path=C\:\\Program Files\\Java\\jre6\\bin\\javaw.exe
    deployment.javaws.jre.0.enabled=true
    deployment.javaws.jre.2.path=C\:\\Program Files\\Java\\jre1.5.0_14\\bin\\javaw.exe
    deployment.javaws.jre.1.osarch=x86
    deployment.javaws.jre.1.osname=Windows
    deployment.javaws.jre.2.product=1.5.0_14
    deployment.javaws.jre.1.platform=1.6
    deployment.javaws.jre.0.product=1.7.0_71


    **if i manually copy the deployment.propeties file to "C:\Users\USER\AppData\LocalLow\Sun\Java\Deployment" the configuration works. - sal623 8 years ago

Answers (2)

Posted by: apptopack 8 years ago
Red Belt
1

You can edit the C:/Users/Admin/AppData/LocalLow/Sun/Java/Deployment/deployment.properties file.

Search for something like this inside the deployment.properties file.

deployment.javaws.jre.1.path=C\:\\Program Files\\Java\\jre6\\bin\\javaw.exe
deployment.javaws.jre.1.platform=1.6

deployment.javaws.jre.1.enabled=True

deployment.javaws.jre.2.path=C\:\\Program Files\\Java\\jre7\\bin\\javaw.exe
deployment.javaws.jre.2.platform=1.7

deployment.javaws.jre.2.enabled=True

Change the value for deployment.javaws.jre.2.enabled to false for the JRE versions which you want to turn off.

NOTE: Numberings will differ in your case. I just gave an example.

Also place the deployment.properties file in C:\Windows\Sun\Deployment  so that it will reflect for all the users.


Posted by: apptopack 8 years ago
Red Belt
0
Search for deployment.properties for java and you can understand how to modify settings and replicate it for all users.
 
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