Fixed bug when logging in the first time. Default the Java home to the JAVA_HOME environment var. Fixed getRealName(), though it is probably no longer used. Updated jdk detection lib strings and shortened the jdk download URL.