posted 23 years ago
Found my answer on their site:
Using the relative path to access a file
If you want to acces a file like
File file = new File("myfile.txt");
Netbeans/Forte looks for this file in the directory it is started from. To set the directory Netbeans/Forte searches for a file if its absolute path is not given, go to to the properties of your executor (right-click the class --> Properties --> Execution --> Executor), and on the Expert tab, set the "Working Directory" property to your desired directory.
This will work in Forte/Netbeans; however, it is generally not a good idea to access files in such a way. Instead, the contents of the file should be accessed like
InputStream in = MyClass.class.getResourceAsStream(RESOURCE_PATH);