Hello, world!

Mark Reinhold mr at sun.com
Wed Apr 1 12:58:40 PDT 2009


I've just pushed the first semi-working version of the Jigsaw runtime
code.  It can launch a module's main class and resolve a dependence upon
another module.  It's slow and incomplete, but it's a first step.  My
next goal is to work through the different combinations of dependence
modes (i.e., public, local, and optional).

If you want to play with it, be sure to build both the langtools and
hotspot trees as well as the jdk tree.  The runtime depends upon Karen's
latest HotSpot changes, and you can't compile modular source code without
Jon's latest javac.

- Mark


% cd jdk/test/org/openjdk/jigsaw
% sh hello.sh
Hello, world!
% JIGSAW_TRACE=1 sh hello.sh
| updateSuppliers ModuleInfo { id: org.astro at 1.2, [], provides: [], permits: [], mainClass: null }
| updateSuppliers ModuleInfo { id: com.greetings at 0.1, [requires org.astro@=1.2], provides: [], permits: [], mainClass: com.greetings.Hello }
| ((z.lib))[jdk at 7-ea] unnamed jdk at 7-ea:java.lang.Object
| launch: loader ((z.lib))[com.greetings at 0.1], module com.greetings at 0.1, class com.greetings.Hello
| ((z.lib))[jdk at 7-ea] unnamed jdk at 7-ea:java.lang.String
| ((z.lib))[jdk at 7-ea] com.greetings at 0.1 jdk at 7-ea:java.lang.System
| ((z.lib))[jdk at 7-ea] com.greetings at 0.1 jdk at 7-ea:java.lang.StringBuilder
| ((z.lib))[com.greetings at 0.1] com.greetings at 0.1 org.astro at 1.2:org.astro.World
| ((z.lib))[jdk at 7-ea] unnamed jdk at 7-ea:java.lang.Object
| ((z.lib))[jdk at 7-ea] com.greetings at 0.1 jdk at 7-ea:java.io.PrintStream
Hello, world!
% 



More information about the jigsaw-dev mailing list