Another Quick Start Guide Nitpick

Mani Sarkar sadhak001 at gmail.com
Thu Sep 10 21:30:29 UTC 2015


Jim,

Yes that's another issue there. I meant to report - already switched it
around in my bash scripts see the 5_Missing_xxx folders.

One more thing while we are at it - wherever possible in the examples we
need to mention that the javac and java commands should be executed from
outside the src folder - its obviously but just to be a bit more clear, as
these are new things we are learning about JDK9.

Cheers,
Mani

On Thu, Sep 10, 2015 at 10:24 PM, Jim Connors <james.connors at oracle.com>
wrote:

> 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
>



-- 
@theNeomatrix369 <http://twitter.com/theNeomatrix369>*  |  **Blog
<http://neomatrix369.wordpress.com>**  |  *LJC Associate & LJC Advocate
(@adoptopenjdk & @adoptajsr programs)
*Meet-a-Project - *MutabilityDetector
<https://github.com/MutabilityDetector>*  |  **Bitbucket
<https://bitbucket.org/neomatrix369>* * |  **Github
<https://github.com/neomatrix369>* * |  **LinkedIn
<http://uk.linkedin.com/pub/mani-sarkar/71/a77/39b>*
*Come to Devoxx UK 2016:* http://www.devoxx.co.uk/

*Don't chase success, rather aim for "Excellence", and success will come
chasing after you!*


More information about the jigsaw-dev mailing list