Thursday, May 15, 2014

How to globally set Java settings

How to set Java settings on a machine/system/global level:

1) Create a new text file at "C:\Windows\Sun\Java\Deployment\deployment.config"
2) populate it with two values:

#deployment.config
#May 15 2014
# The First line below specifies if this config is mandatory which is simple enough
# The second line just tells Java where to the properties of your Java Configuration
# NOTE: These java settings will be applied to each user file and will overwrite existing ones
deployment.system.config.mandatory=True
deployment.system.config=file\:C\:/WINDOWS/Sun/Java/Deployment/deployment.properties

Create or copy deployment.properties at
(You can copy the one created for your user profile @ %userprofile%\LocalLow\Sun\Java\Deployment\deployment.properties as a template).

Modify the values as needed (example):
#deployment.properties
deployment.security.level=MEDIUM

If the user has an existing deployment.properties under their user profile you may need to delete it.  On next java launch it will create a deployment.properties under their profile with the values you specified in the global file missing from their local file.

No comments: