Path setting for JBuilder project
Dear,
The program is loading the text file from the following path in jbuilder project,
String repository = "file:/D:/JBuilderProject/classes/datasets/prediction.txt";
URL metaFileURL = new URL(repository);
// Attempt to open an input stream attached to the file.
InputStream inputStream = metaFileURL.openStream();
However, when I make an executable file and try to run this program in different computer, then the program is not loading this file (prediction.txt).
Is there any method to load this file directly from jbuilder project such as:
String repository = "classes/datasets/prediction.txt";
URL metaFileURL = new URL(repository);
// Attempt to open an input stream attached to the file.
InputStream inputStream = metaFileURL.openStream();

