So, I wrote my first java application I made a jar file, then I made an .exe
file with Launch4j, then I made an installer(with Inno setup compiler) so that every user who downloaded the setup could install the program. The program worked great for every one who had installed java, however those who hadn't installed java got different errors like
"this application requires java runtime environment 1.0.0".
So my question is how can I write my application in java so that any one who wants to download the setup would be able to open the program without errors, I mean how are other programs made for example different games, that don't require any programming systems like java, or python to run smoothly. P.S which programming language should i use, to avoid such kind of errors, for example writing a code in C# or C requires environments like java jdk?