Software Question

Java8 Overwrites Deployment.properties file (java 8 update 121)

04/02/2017 3812 views

Anyone experienced the deployment.properties file getting overwitten in C:\windows\sun\java\deployment folder?

Ive created as usual with .properties file and .config file in folder above

However it gets overwritten at end of install, rather annoying

I can modify location but would rather not.

Version 8u121 x86 and x64

Answer Summary:
0 Comments   [ + ] Show comments


Answer Chosen by the Author

Yes Thanks, I have done that also in past but was using this method as an all-in one method 

Anyway I have now resolved the issue, bit quirky

It seems from my testing that if you set the Property : WEB_JAVA_SECURITY_LEVEL=H in the mst then the install in the post install section decides its going to write a deployment.properties file

Taking out the property and the deployment.properties file doesnt get created by the install 

I'm meaning to check this out more thoroughly when i get a mo but hopefully will help anyone who has this issue

Answered 04/07/2017 by: vscamp
White Belt

All Answers

I always have zipped up the contents of the C:\windows\sun\java\deployment folder with my upgrade packages and copied it over after the install finishes. Hope this helps...

If you are just using a batch:

If not exist "C:\Windows\Sun\Java\Deployment\" Mkdir "C:\Windows\Sun\Java\Deployment\"
If not exist "C:\Windows\Sun\Java\Deployment\exception.sites" xcopy "exception.sites" "C:\Windows\Sun\Java\Deployment\" /y /r
xcopy "deployment.config" "C:\Windows\Sun\Java\Deployment\" /y /r
xcopy "deployment.properties" "C:\Windows\Sun\Java\Deployment\" /y /r
xcopy "DeploymentRuleSet.jar" "C:\Windows\Sun\Java\Deployment\" /y /r
xcopy "trusted.certs" "C:\Windows\Sun\Java\Deployment\" /y /r

Answered 04/06/2017 by: Desktop Jockey
Second Degree Green Belt

Don't be a Stranger!

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

Sign up! or login

View more

Software Questions