Java8 Overwrites Deployment.properties file (java 8 update 121)
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
Please log in to answer
Posted by: vscamp 4 years ago
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
Posted by: Desktop Jockey 4 years ago
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