[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-jigsaw-dev
Subject:    Hello, world!
From:       Dalibor.Topic () Sun ! COM (Dalibor Topic)
Date:       2009-04-01 21:43:17
Message-ID: 49D3DFF5.2040801 () sun ! com
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic