Fix string index out of range issue if java.home path does not have the /jre suffix
Merge pull request #34 from loune/develop

Fix string index out of range issue if java.home path does not have the jre suffix