clean up the code a bit to make it more readable
use a more standard way to find the java binary, should hopefully fix
bug:
http://services.runescape.com/m=forum/forums.ws?25,26,99,61985129,goto,735#7341
Code cleanup to make it more readable