Indeed for NetBeans this codepath should not be hit. If permissions were somehow messed with though, the file might indeed be unreadable and thus explain why the "load from classpath" route is taken.
Software developer with about two decades of experience, primarily C# & Java. - CEO of @freneticllc - public projects @mcmonkeyprojects - mcmonkey4eva ...