I have a Swing desktop application and have created a jar file which depends on library (which is kept in ./lib/) and a .txt file in the same folder. Now to execute the jar I have written a .bat file which checks if Java is installed or not. If installed then I run the jar file with command:
javaw -jar TagEdit.jar
Now there are two problems I am facing with this:
- I would rather prefer a single executable, if possible.
- As using bat file, the console is visible in back (looks kind of weird). Is it possible to turn it off?
- Java is everywhere, and there are lots of applications that are built in Java and packaged in a setup, or given as
exe. I Googled a lot but could not find a way to create a setup for the software or anexe. How are those software packaged?
Have tried jlaunch, but could not get that to work correctly.
javaw -jar TagEdit.jarto the bottom of your script if it would have returned true?