Changed JDKPath calculation algorithm to take JAVA_HOME settings first on the OSX and not to take File.parent from the given path. Needs to be tested more though to make sure it works on all systems.
Changed JDKPath calculation algorithm to take JAVA_HOME settings first on the OSX and not to take File.parent from the given path.
Needs to be tested more though to make sure it works on all systems.

git-svn-id: 4a0daf30c0bbd291b3bc5fe8f058bf11ee523347@1708 7d282ba1-3ae6-0310-8f9b-c9008a0864d2

amikey/tigase-server,fanout/tigase-server,pivotal-nathan-sentjens/tigase-xmpp-java,sourcebits-praveenkh/Tagase,Smartupz/tigase-server,Smartupz/tigase-server,nate-sentjens/tigase-xmpp-java,amikey/tigase-server,sourcebits-praveenkh/Tagase,amikey/tigase-server,sourcebits-praveenkh/Tagase,caiyingyuan/tigase71,fanout/tigase-server,caiyingyuan/tigase71,pivotal-nathan-sentjens/tigase-xmpp-java,wangningbo/tigase-server,pivotal-nathan-sentjens/tigase-xmpp-java,pivotal-nathan-sentjens/tigase-xmpp-java,fanout/tigase-server,pivotal-nathan-sentjens/tigase-xmpp-java,cgvarela/tigase-server,wangningbo/tigase-server,cgvarela/tigase-server,caiyingyuan/tigase71,Smartupz/tigase-server,cgvarela/tigase-server,Smartupz/tigase-server,sourcebits-praveenkh/Tagase,caiyingyuan/tigase71,pivotal-nathan-sentjens/tigase-xmpp-java,nate-sentjens/tigase-xmpp-java,cgvarela/tigase-server,cgvarela/tigase-server,amikey/tigase-server,sourcebits-praveenkh/Tagase,nate-sentjens/tigase-xmpp-java,f24-ag/tigase,f24-ag/tigase,wangningbo/tigase-server,wangningbo/tigase-server,Smartupz/tigase-server,caiyingyuan/tigase71,f24-ag/tigase,nate-sentjens/tigase-xmpp-java,amikey/tigase-server,wangningbo/tigase-server,f24-ag/tigase,sourcebits-praveenkh/Tagase,nate-sentjens/tigase-xmpp-java,caiyingyuan/tigase71,wangningbo/tigase-server,fanout/tigase-server,f24-ag/tigase,fanout/tigase-server,Smartupz/tigase-server,cgvarela/tigase-server,fanout/tigase-server,amikey/tigase-server,f24-ag/tigase,wangningbo/tigase-server,nate-sentjens/tigase-xmpp-java