problem with Class#getResource

Alan Bateman Alan.Bateman at
Sun Sep 4 20:05:13 UTC 2016

On 04/09/2016 14:35, Jochen Theodorou wrote:

> Hi all,
> I am using build 9-ea+132
> I have a test, that does in the setup this.class.getResource("/jars"), 
> to get a URL to the jars directory. The parent directory is on the 
> classpath, but the call returns null... This code is not run in a 
> named module.
> Can anyone tell me why that returns null with jigsaw?
Can you say what "this.class" is in the example? Also do you see any 
difference in behavior between the regular JDK 9 downloads and the 
Jigsaw EA downloads?


More information about the jigsaw-dev mailing list