Another Quick Start Guide Nitpick
Jim Connors
james.connors at oracle.com
Thu Sep 10 21:24:42 UTC 2015
One more thing while I'm at it:
In the "Missing requires or missing exports" section:
http://openjdk.java.net/projects/jigsaw/quick-start#missing
We now fix this module declaration but introduce a different
mistake, this time we omit the |exports| from the |org.astro| module
declaration:
$ cat src/com.greetings/module-info.java
module com.greetings {
requires org.astro;
}
$ cat src/org.astro/module-info.java
module org.astro {
// exports org.astro;
}
Prior to issuing the javac on the greetings.com module (with anticipated
error)
$ javac -modulepath mods -d mods/com.greetings \
src/com.greetings/module-info.java src/com.greetings/com/greetings/Main.java
I think the org.astro module has to be rebuilt first. Otherwise no
error will appear.
$ javac -d mods/org.astro \
src/org.astro/module-info.java src/org.astro/org/astro/World.java
Make sense?
-- Jim C
More information about the jigsaw-dev
mailing list