Create a project in the Eclipse IDE, create a class and file in the same place. Described as:
URL urlFnumZ = HelixAtlaskirov.class.getResource("FnumZ.txt"); If I run it in Eclipse, it works with a bang, and after building the jar, when I wrap it in exe using the launch4j program, I get an error:
Caused by: java.io.FileNotFoundException: file: \ C: \ G \ Helix-Lab.exe! \ \ Atlaskirov \ helix \ jfx \ FnumZ.txt (Syntax error in the file name, folder name, or volume label)
I also tried to describe how:
URL urlFnumZ = HelixAtlaskirov.class.getClassLoader().getResource("FnumZ.txt"); то же самое.