jrt file system now has /package and /modules directories

Michael Hall mik3hall at gmail.com
Sun Jul 26 00:29:06 UTC 2015


> On Jul 25, 2015, at 12:10 PM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> 
> 
> Just a heads-up that jdk9-b74 has a refresh of the jimage and jrt file system implementation.

Have mostly just been following along on this a little with the early access releases. I was a little curious on this though so I cloned and built current jdk9.
I have a simple jrt filesystem lister that I tried running getting…

~/jdk9/build/macosx-x86_64-normal-server-release/jdk/bin/java -cp . JRTLister 
java.nio.file.FileSystemNotFoundException: /Users/mjh/jdk9/build/macosx-x86_64-normal-server-release/jdk/lib/modules/bootmodules.jimage
	at jdk.internal.jrtfs.JrtFileSystem.checkExists(JrtFileSystem.java:87)
	at jdk.internal.jrtfs.JrtFileSystem.<init>(JrtFileSystem.java:102)
	at jdk.internal.jrtfs.JrtFileSystemProvider$1.<init>(JrtFileSystemProvider.java:113)
	at jdk.internal.jrtfs.JrtFileSystemProvider.getTheFileSystem(JrtFileSystemProvider.java:113)
	at jdk.internal.jrtfs.JrtFileSystemProvider.getFileSystem(JrtFileSystemProvider.java:131)
	at java.nio.file.FileSystems.getFileSystem(FileSystems.java:221)
	at JRTLister.main(JRTLister.java:13)

Obviously finding JrtFileSystem but not modules/bootmodules.jimage?
Built version shows as 

openjdk version "1.9.0-internal"
OpenJDK Runtime Environment (build 1.9.0-internal-mjh_2015_07_25_16_42-b00)
OpenJDK 64-Bit Server VM (build 1.9.0-internal-mjh_2015_07_25_16_42-b00, mixed mode)

So I don’t know that this is really the b74 build. Is there some other way I should get that?

(I had downloaded the current download page available jdk9 early access shortly before this getting b73)

Again, mostly curiosity, thanks.

Michael Hall





More information about the jigsaw-dev mailing list