Java 9 Support

825 views
Skip to first unread message

Paul Gross

unread,
Sep 4, 2015, 6:49:37 PM9/4/15
to bazel-discuss
Are there plans to support java 9? I realize it's still early:
http://mail.openjdk.java.net/pipermail/jdk9-dev/2015-May/002172.html

The reason I'm asking is I was able to get JShell (java 9's REPL) working with a bazel built project. JShell doesn't work with java 8, however, and bazel doesn't work with java 9. So I have to bazel build with 8 and then run the jars with 9.

The specific error I'm getting is:

% bazel build //...
Problem with java installation: couldn't find/access rt.jar in /usr/lib/jvm/java-9-oracle

It looks like java 9 removes rt.jar:

Thanks,
Paul

Damien Martin-guillerez

unread,
Sep 4, 2015, 7:32:28 PM9/4/15
to Paul Gross, bazel-discuss
Hello Paul,

Normally, Java 9 is supported (I.e, you should be able to build using with source / target 9 and we should be able to run on Java 9). This is just a check that we can fix IIRC. I cannot guarantee there is more problem after that.

We are going to drop Java 7 support next week after the beta and I can probably have a look at that at the same time we drop Java 7.
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAMXKpGCw9ZYF_4y3Tf0%2BNbEGEg%2BqY1Hxmk7wvjk0%2Bkvf5EeKRw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Paul Gross

unread,
Sep 4, 2015, 8:26:22 PM9/4/15
to Damien Martin-guillerez, bazel-discuss
Sounds good. Thanks!

Damien Martin-guillerez

unread,
Sep 7, 2015, 5:11:19 AM9/7/15
to Paul Gross, bazel-discuss
Reply all
Reply to author
Forward
0 new messages