This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version = NetBeans IDE 7.1 Beta (Build 201109252201) Operating System = Windows 7 version 6.1 running on amd64 Java; VM; Vendor = 1.6.0_24 Runtime = Java HotSpot(TM) 64-Bit Server VM 19.1-b02 Simple program tries to load the Properties from the resource stream. In NetBeans 6.9 this program works fine, but in 7.1 it throws NullPointerException. The code sample: InputStream is = this.getResourceAsStream(PROP_FILE_NAME); (new Properties()).load(is);
Can you please provide the project and the stack trace of the exception, you've got? Thanks
Created attachment 112692 [details] This is a ZIP of the project Jiri Prox asked to provide the project. Here you are.
Created attachment 112693 [details] Screenshot of the project output under NB 7.1 beta and this is a message I got with NB 7.1 beta, while the NB 6.9 runs the project without a problem
Fixed jet-main b8c57a087a22
As a work around before the fix is integrated you can clean the project.
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/b8c57a087a22 User: Tomas Zezula <tzezula@netbeans.org> Log: #204370:Java Application couldn't locate resource, present in the class package folder