Fixed issue where app wasn't loading with JRE 6