Used by gs2-server.sh, identical to findjava.sh inside the GLI folder. Later we can have just one copy in svn and check them out to the right locations.