Thursday, April 22, 2010

Java "user.home" property

I was working on a Grails project, and noticed very poor perfomance of resolving the dependencies - no less than 5 seconds. My colleagues got this phase working at least 5 times faster!
After little investigation i've found out that problem was with Java "user.home" system property, pointing to the network path.
This situation causes even more troubles, as all the apps which use Java "user.home" create their ".something/" in the path, specified by this property. And after that they all work very slow because of network latency.
I've found a fix here:
http://stackoverflow.com/questions/2134338/java-user-home-is-being-set-to-userprofile-and-not-being-resolved
Basically, altering
CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Desktop
value to  
%userprofile%\Desktop 
solved the problem.
Cool!

1 comment: