[JVMFinder] raise correct exception