Commit 1be45382 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Win32: fix Java8 loading of classes

Indeed, on Windows, the separator for Xbootclasspath/p format is
";" and not ":"
parent e143a72f
Pipeline #5680 passed with stage
in 2 minutes and 1 second
......@@ -875,9 +875,15 @@ static int _create_jvm(void *jvm_lib, const char *java_home, const char *jar_fil
option[n++].optionString = str_dup ("-XfullShutdown");
#endif
#ifdef _WIN32
# define CLASSPATH_FORMAT_P "%s;%s"
#else
# define CLASSPATH_FORMAT_P "%s:%s"
#endif
if (!java_9) {
option[n++].optionString = str_dup ("-Djavax.accessibility.assistive_technologies= ");
option[n++].optionString = str_printf("-Xbootclasspath/p:%s:%s", jar_file[0], jar_file[1]);
option[n++].optionString = str_printf("-Xbootclasspath/p:" CLASSPATH_FORMAT_P, jar_file[0], jar_file[1]);
} else {
option[n++].optionString = str_printf("--patch-module=java.base=%s", jar_file[0]);
option[n++].optionString = str_printf("--patch-module=java.desktop=%s", jar_file[1]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment