B
Bojan
I am using RAD (Rational Application Developer) to create a java
application. I have multiple folders with java files, and one folder
named Resources with a file header-script.html
In one of the classes I have the following line.
BufferedReader br = new BufferedReader(new FileReader("Resources/
header-script.html"));
With this line, it works fine when I run it in RAD.
but when I export it as jar file (with proper starting main class) it
throws an IOException:
java.io.FileNotFoundException: Resources/header-script.html (The
system cannot find the path specified)
How do I make the executable jar file act the same as when I run it in
RAD.
application. I have multiple folders with java files, and one folder
named Resources with a file header-script.html
In one of the classes I have the following line.
BufferedReader br = new BufferedReader(new FileReader("Resources/
header-script.html"));
With this line, it works fine when I run it in RAD.
but when I export it as jar file (with proper starting main class) it
throws an IOException:
java.io.FileNotFoundException: Resources/header-script.html (The
system cannot find the path specified)
How do I make the executable jar file act the same as when I run it in
RAD.