Issues with loading a resource file in a plugin.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Issues with loading a resource file in a plugin.

Volodymyr Babin
Hi,

I have yet another issue to be resolved, this seems to be the very basic one, yet I can't solve it for now.

I need to load an resource xml file to get some more autocomletion options. So I load and parse it by using:
======
new File("src/com/forcenb/resources/autocomplete.xml");
======

While it, again, works perfectly in the Run/Debug environment, when it gets installed into the Netbeans as a plugin, IDE log shows it cannot find that file, and a path it refers to starts with Netbeans root folder, e.g. <netbeans_root>/src/com/forcenb/resources/autocomplete.xml.

How do I solve this?

Thanks a lot.

Loading...