This method is used in getResource()
and getResourceAsStream()
but it does not convert the path name in any way and so if you use the /
separator in the path (as defined in those methods) it fails on windows machines because it simply walks the app directories and resolves the name against them (but system-dependent separator is used).