Hello, world!
Dalibor Topic
Dalibor.Topic at Sun.COM
Wed Apr 1 14:43:17 PDT 2009
Mark Reinhold wrote:
> 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.
>
Very cool, Mark!
cheers,
dalibor topic
> - 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!
> %
--
*******************************************************************
Dalibor Topic Tel: (+49 40) 23 646 738
Java F/OSS Ambassador AIM: robiladonaim
Sun Microsystems GmbH Mobile: (+49 177) 2664 192
Nagelsweg 55 http://openjdk.java.net
D-20097 Hamburg mailto:Dalibor.Topic at sun.com
Sitz der Gesellschaft: Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Amtsgericht München: HRB 161028
Geschäftsführer: Thomas Schröder, Wolfgang Engels, Dr. Roland Bömer
Vorsitzender des Aufsichtsrates: Martin Häring
More information about the jigsaw-dev
mailing list