How can I distribute my
Java desktop application?
I mean, say I have an application built in Java, contains some Java classes. I compiled all the classes, created .bat file to run it on a click of mouse.
The bat file will have something like: java com.ankur.MyAppStarter
Now it works on my system because I have JDK's bin folder in my PATH variable.
What if other people doesn't have JDK's bin folder in their PATH? Or worst if they don't have JVM (JRE) on their system?
Shall I distribute JRE with my application (and then I set PATH first before running my application)?
Any suggestions appreciated.
Thanks.