fixed jvm switch
Merge pull request #245 from pulse00/multi-jvm-patch

fixed jvm switch