Jim you stole my thunder and lightening - that was it. Cheers, Mani
On Thu, Sep 10, 2015 at 9:55 PM, Jim Connors <james.conn...@oracle.com> wrote: > On 9/10/2015 4:30 PM, Alan Bateman wrote: > > I don't immediately see the error in the services example (I need to look > closer) but I think you have a point that this example jumps ahead too > much. Good idea to get the examples into a repo with scripts. > > > In the Services Section: > http://openjdk.java.net/projects/jigsaw/quick-start#services > > $ cat src/com.greetings/com/greetings/Main.java > package com.greetings; > > import com.socket.NetworkSocket; > > public class Main { > public static void main(String[] args) { > NetworkSocket s = NetworkSocket.open(); > } > } > > When you run the com.greetings.Main class via: > > $ java -mp mods -m com.greetings/com.greetings.Main > > The Quick Start guide shows the output as: > > class org.fastsocket.FastNetworkSocket > > The Main.java file referenced above prints nothing (at least in my case), > would it have to be modified slightly, something like: > > $ cat src/com.greetings/com/greetings/Main.java > package com.greetings; > > import com.socket.NetworkSocket; > > public class Main { > public static void main(String[] args) { > NetworkSocket s = NetworkSocket.open(); > System.out.println(s.getClass().toString()); > } > } > > -- 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!*