The “mod” folder, shown above, is generated at run-time during the second time I execute the JAR. That means, this “mod” folder does not exist in the CLASSPATH of the JAR file.
The “mod” file structure is like this:
I’ve been trying to get the “aas.script” be fed into the BufferedReader, like so:
BufferedReader reader = new BufferedReader(new InputStreamReader(Script.class.getClassLoader().getResourceAsStream(filename)));
The BufferedReader code works normally, as shown here:
Is there some other way that I am unaware of that lets me read a file generated outside of the JAR file (particularly when the JAR is in the /bin/ folder of my project root folder)?
Thanks in advance.