Problem using -Xbootclasspath/p
Lindenmaier, Goetz
goetz.lindenmaier at sap.com
Mon Feb 2 10:24:49 UTC 2015
Hi Roman,
I just had the same problem.
I fixed it by
1.) Copying a rt.jar from our Java 7 VM into the jvm2008 directory
2.) Patching the file Compiler.java, see below, and rebuilding SPECjvm2008.jar
3.) Adding -Xbootclasspath/p:lib/javac.jar to the command line
I guess one can not submit results with this inofficial jar, but for internal use it's fine.
Best regards,
Goetz.
--- a/src/spec/benchmarks/compiler/Compiler.java
+++ b/src/spec/benchmarks/compiler/Compiler.java
@@ -20,6 +20,14 @@
public boolean skipVerify;
public Compiler(String[] args) {
+ if (Integer.parseInt(System.getProperty("java.version").split("\\.")[1]) > 8) {
+ // Since Java 9, we must supply our own rt.jar that fits to the old compiler
+ // and old source.
+ String myArgs[] = new String[args.length + 1];
+ myArgs[0] = "-Xbootclasspath/p:rt7.jar";
+ System.arraycopy(args, 0, myArgs, 1, args.length);
+ args = myArgs;
+ }
this.args = args;
}
More information about the jigsaw-dev
mailing list