user3239604
user3239604

Reputation: 93

How to use jigsaw with Java 9

I am trying to experiment with project Jigsaw as per this link http://openjdk.java.net/projects/jigsaw/doc/quickstart.html

However, I cant find jmod command in the Java 9 early access build. Similarly, javac emits an error message saying

javac: invalid flag: -modulepath".

Any idea? What is the best way to experiment with Jigsaw in Java 9?

Upvotes: 9

Views: 711

Answers (3)

Ben Xu
Ben Xu

Reputation: 1319

After so many delays, the latest information is that Java 9 will FINALLY be released Sept 21.

Please use its released version for try, we have seen SO MANY changes related to Java 9, hopefully, it will be stable after public release.

related info: http://mail.openjdk.java.net/pipermail/jdk9-dev/2017-June/005867.html

BTW:the best place to check java 9's status is at its architect's twitter:

https://twitter.com/mreinhold

Upvotes: 1

samael
samael

Reputation: 2168

There are now early access builds available with Jigsaw

Upvotes: 3

Joe
Joe

Reputation: 31087

Although the preparatory JEP 201 and JEP 220 are both present as of JDK 9 build 41, the main Jigsaw work for JSR 376 is not yet present.

In response to a similar question on the mailing list, about that quickstart guide:

This is a quick start documentation from the original Jigsaw prototype of a few years ago, I guess it's a reminder that some of these obsolete pages needs to be updated to make it clear that they are obsolete.

and about the current state of the work:

JSR 376 is just starting and so there isn't a JEP for the module system yet. It will all come in time.

So, as of March 2015, the OpenJDK 9 builds don't include Jigsaw support. The jigsaw-dev mailing list is the best place to look for progress. It also confirms that status:

So too early to be looking for options like -modulepath.

It's likely that Jigsaw-specific builds will be made available ahead of inclusion in the regular JDK 9 builds.

Upvotes: 7

Related Questions