Within the application that I am developing at the moment I read in the properties from a file called
settings.properties. The contents of this file are accessed by using the following line of code:
InputStream input = getClass().getResourceAsStream("settings.properties");
This works fine.
I am developing the interface using JIDE, and as such need to read in the content of an xml template file in the same manner in order to pass it to the docking manager when the application is initialised. Therefore I have written the following line of code;
InputStream templateInput = getClass().getResourceAsStream("template.ilayout");
When I run the application I am getting an error message saying that templateInput is null. When I explored the file structure using windows explorer I found that the
template.ilayout file had not been copied to the class directory within the project when I ran it - hence templateInput is null.
I copied the template.ilayout file into the class directory and the application ran successfully.
Is there a setting in JDeveloper that is preventing this file from being found at run time? or am I doing something wrong?
Thanks in advance for your help
David