Follow

Redirecting Sun Java Cache Location - Setting Global Site Exceptions - Disable update check

Product: ProfileUnity FlexApp

Product Version: 5.x

Expires on: 365 days from publish date

Updated: June 10,2014

 

 

Problem:  Sun Java Cache not preserved between log ins. Java Portability adds undesired length to log on process.

 

Cause:  Redirection of AppData\LocalLow not currently supported requiring Sun Java cache to be captured via Portability Rule. You also want to set Global Site Exceptions

 

Resolutions:

 

Automated – Redirect Sun Java Cache location using deployment.properties configuration for Sun Java to Mapped network location (in this case a mapped home drive to H:\servername\home\%username%) effectively using H:\LocalLow.

 

http://docs.oracle.com/javase/1.5.0/docs/guide/deployment/deployment-guide/properties.html

 

1.     Log into one of the Desktops in the VDI environment and navigate to C:\Users\%username%\AppData\LocalLow\Sun\Java\Deployment and open the file "deployment.properties" in notepad (or any text editor you fell comfortable with). Add the line "deployment.user.cachedir=H:\\LocalLow\\Sun\\Java\\Deployment\\Cache" (in this case, the H: Drive is mapped to the user's home directory and the LocalLow folder is pre-created).

 

Example deployment.properties:

 

#deployment.properties
#Mon May 19 13:15:33 CDT 2014
deployment.modified.timestamp=1400523333649
deployment.version=7.21
deployment.security.level=MEDIUM
deployment.browser.path=C\:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe
deployment.user.cachedir=H:\\LocalLow\\Sun\\Java\\Deployment\\Cache
#Java Deployment jre's
#Mon May 19 13:15:33 CDT 2014
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.1.args=
deployment.javaws.jre.1.enabled=true
deployment.javaws.jre.1.registered=true

 

Save the file in it's original location (C:\users\%username%\AppData\LocalLow\Sun\Java\Deployment)

 

2. Browse into the Deployment Directory and delete the cache directory, SystemCache, and tmp directories under C:\Users\%username%\AppData\LocalLow\Sun\Java\Deployment.

 

3. Copy the Sun directory located in C:\users\%username%\AppData\LocalLow\ to a network share available to all users (ie. \\server\netlogon\ProfileUnity\Java)

 

4. Next, we need to create an AppLauncher rule in ProfileUnity to copy the Sun folder from \\server\netlogon\ProfileUnity\Java to C:\Users\%username%\AppData\LocalLow

 

Filter = None

FileSpec= %systemroot%\System32\cmd.exe

Arguments= /c xcopy \\server\netlogon\ProfileUnity\Java\*.* C:\Users\%username%\AppData\LocalLow\*.* /y /s /e

Timing= After Configuration Execution

Schedule= Everyday

Frequency= Every Logon

UID= BLANK

Tracking Path= BLANK

 

JavaAppLauncer.png

 


Save the configuration and update the INI. If you have a Java Portability rule, you should also delete/disable the rule before updating the ini file.

 

For Global Site Expections:

1. In the Netlogon location that the (ie. \\server\netlogon\ProfileUnity\Java) resides, there is an additional directory under "Security". Open the file "exception.properties" and add sites to the list in text format "http://site.com"

 

Example:

http:site.com

 

Expected bhavior:

 

When Java launches, it will read the copied deployment.properties and automatically look in H:\LocalLow\Sun\Java\Deployment\Cache for the existing jar files for the application specified. If it does not find them, it will save the cached application to that location negating the need for Java Portability.

 

Also, Java settings that need to be global for all users can be set by modifying the deployment.properties located in \\server\netlogon\ProfileUnity\Java\Sun\Java\Deployment. The next time the user logs in, they will receive the updated deployment.properties and settings configured in the file.

 

To Disable Update Check

N8et3.png

 1. Edit your deployment.properties placed in your netlogon share \\server\netlogon\ProfileUnity\Java\Sun\Deployment and add the line "deployment.expiration.check.enabled=false"

Example

 

#deployment.properties
#Mon May 19 13:15:33 CDT 2014
deployment.modified.timestamp=1400523333649
deployment.version=7.21
deployment.security.level=MEDIUM
deployment.browser.path=C\:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe
deployment.user.cachedir=H:\\LocalLow\\Sun\\Java\\Deployment\\Cache

deployment.expiration.check.enabled=false


#Java Deployment jre's
#Mon May 19 13:15:33 CDT 2014
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.1.args=
deployment.javaws.jre.1.enabled=true
deployment.javaws.jre.1.registered=true

 

2. Save the changes back to your netlogon share \\server\netlogon\ProfileUnity\Java\Sun\Deployment

 

 

 

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.