Jeffrey Holt - 2024-12-20

After my tests with jdk 23, I think there is a java for windows bug that manifests only when JNI_CreateJavaVM starts the JVM. I don't see a problem when the java command starts the JVM. I think the java command main is handling the bounding characters correctly.

I think a reasonable workaround for the bug is to strip bounding characters (if they're used) before calling JNI_CreateJavaVM in jnihead.c.

I also looked in the "git log -p" output that extends all the way back to 2006. I see no reference at all in the commits to JAVA_TOOL_OPTIONS being interrogated at all, which adds more credit to my theory that it's a java bug, not a launcher bug.

 

Last edit: Jeffrey Holt 2024-12-20