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

Reply via email to