I have created a .bat file that is included in the PATH variable so that when calling it from the terminal anywhere it would be executed and a java -jar command will be run.
@echo off
java -jar "[path]\[filename].jar"
This jar is a JavaFX Application which has a GUI interface. But when I close the terminal, the JavaFX Application gets terminated. Is there a certain command that could prevent the application from being killed when closing the terminal on windows?