My simple command line app:
int _tmain(int argc, _TCHAR* argv[]) { JavaVM *jvm; JNIEnv *env; JavaVMInitArgs vm_args; JavaVMOption options[1]; options[0]
I think that your problem is answered by this question in the Sun JNI FAQ.
TL;DR version: Don't move the JVM installation's DLLs.