V
V
Vyacheslav2018-05-24 19:51:02
Java
Vyacheslav, 2018-05-24 19:51:02

How to properly build an exe so that the application can interact with .xml and .properties files?

From the javafx project, using exe4j, I assembled an exe-shnik. The program uses the .xml and .properties files that are in the resources folder, but the executable does not see them.
Where should these files be placed or how to rebuild so that the program starts interacting with them?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Kornachev, 2018-05-24
@zelan

Check if the jar is working properly. If yes, then after try add catch with stack trace output to the console.
Collect exe. Run the program in the terminal: java -jar <*.exe> ​​(should work, at least it works with launch4j). Or just run it in a terminal.
The stack trace with the error should be printed to the console.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question