-
-
Notifications
You must be signed in to change notification settings - Fork 649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pants with java 9/10 fails with exception failed: u'sun.boot.class.path'. #5676
Comments
So. I think what's going on here is that java 9 removed the sun.boot.class.path system property. And Pants is loading the value of that property in a couple places.
I think the |
Does it mean pants aren't compatible with java >= 9 projects? |
FWIW I have Pants running the Java9 compiler successfully, producing Java9 classfiles, on a java 8 JVM. |
Cool! |
I've recently begun rebasing #4729, which should unblock this from a |
I've tried pants on jdk8 and zinc on jdk9 by passing -java-home. Indeed it works but has some side effects.
|
Building pants/zinc on java 9 and 10 fails with exception failed: u'sun.boot.class.path'.
System Software Overview:
System Version: macOS 10.13.3 (17D102)
Kernel Version: Darwin 17.4.0
Tested tags: 1.5.0, 1.6.0rc0 and master
Tested jvms:
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
Java(TM) SE Runtime Environment 18.3 (build 10+46)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10+46, mixed mode)
Output of ./pants test zinc:
16:33:10 00:00 [main]
(To run a reporting server: ./pants server)
16:33:10 00:00 [setup]
16:33:11 00:01 [parse]
Executing tasks in goals: bootstrap -> imports -> unpack-jars -> deferred-sources -> gen -> jvm-platform-validate -> resolve -> resources -> compile -> pyprep -> test
16:33:11 00:01 [bootstrap]
16:33:11 00:01 [substitute-aliased-targets]
16:33:11 00:01 [jar-dependency-management]
16:33:11 00:01 [bootstrap-jvm-tools]
16:33:11 00:01 [provide-tools-jar]
16:33:11 00:01 [imports]
16:33:11 00:01 [ivy-imports]
16:33:11 00:01 [unpack-jars]
16:33:11 00:01 [unpack-jars]
16:33:11 00:01 [deferred-sources]
16:33:11 00:01 [deferred-sources]
16:33:11 00:01 [gen]
16:33:11 00:01 [antlr-java]
16:33:11 00:01 [antlr-py]
16:33:11 00:01 [jaxb]
16:33:11 00:01 [protoc]
16:33:11 00:01 [ragel]
16:33:11 00:01 [thrift-java]
16:33:11 00:01 [thrift-py]
16:33:11 00:01 [wire]
16:33:11 00:01 [avro-java]
16:33:11 00:01 [go-thrift]
16:33:11 00:01 [jax-ws]
16:33:11 00:01 [scrooge]
16:33:11 00:01 [thrifty]
16:33:11 00:01 [jvm-platform-validate]
16:33:11 00:01 [jvm-platform-validate]
16:33:11 00:01 [resolve]
16:33:11 00:01 [ivy]
16:33:12 00:02 [coursier]
16:33:12 00:02 [go]
16:33:12 00:02 [scala-js-compile]
16:33:12 00:02 [scala-js-link]
16:33:12 00:02 [node]
16:33:12 00:02 [resources]
16:33:12 00:02 [prepare]
16:33:12 00:02 [services]
16:33:12 00:02 [compile]
16:33:12 00:02 [node]
16:33:12 00:02 [compile-jvm-prep-command]
16:33:12 00:02 [jvm_prep_command]
16:33:12 00:02 [compile-prep-command]
16:33:12 00:02 [compile]
16:33:12 00:02 [zinc]
Invalidated 6 targets.
16:33:12 00:02 [isolation-zinc-pool-bootstrap]
[1/6] Compiling 1 zinc source in 1 target (src/scala/org/pantsbuild/zinc/util:util).
[2/6] Compiling 2 zinc sources in 1 target (src/scala/org/pantsbuild/zinc/options:options).
[3/6] Compiling 2 zinc sources in 1 target (src/scala/org/pantsbuild/zinc/cache:cache).
16:33:12 00:02 [compile]
16:33:12 00:02 [compile]
16:33:12 00:02 [compile]
16:33:12 00:02 [cache]
No cached artifacts for 1 target.
Invalidated 1 target.
16:33:12 00:02 [cache].
16:33:12 00:02 [cache]
No cached artifacts for 1 target.
Invalidated 1 target.
16:33:12 00:02 [cache].
compile(src/scala/org/pantsbuild/zinc/util:util) failed: u'sun.boot.class.path'
16:33:12 00:02 [cache]
No cached artifacts for 1 target.
Invalidated 1 target.
16:33:12 00:02 [cache].
compile(src/scala/org/pantsbuild/zinc/options:options) failed: u'sun.boot.class.path'
compile(src/scala/org/pantsbuild/zinc/cache:cache) failed: u'sun.boot.class.path'
FAILURE: Compilation failure: Failed jobs: compile(src/scala/org/pantsbuild/zinc/cache:cache), compile(src/scala/org/pantsbuild/zinc/util:util), compile(src/scala/org/pantsbuild/zinc/options:options)
16:33:12 00:02 [complete]
FAILURE
The text was updated successfully, but these errors were encountered: