I have the code on github,
https://github.com/Quillion/Game
And I would like to make it executable. jarIt.bat is the thing that makes the jar.
path C:\Program Files\Java\jdk1.7.0_04\bin;%path%
cls
javac *java
echo Main-Class: Main> manifest.txt
jar cvfm Main.jar manifest.txt *.class
java -jar Main.jar
del *.class
I can execute it on my computer using the run.bat file,
path C:\Program Files\Java\jdk1.7.0_04\bin;%path%
cls
java -jar Main.jar
but if I transfer it to another computer or Linux, I still have to use the commands to execute it. How does one create a jar file so that it can be double clicked and executed?
I am somewhat bad at the whole jar explanation, so if someone can even find a good link to share that explains everything I will be really grateful.
I have tried reading numerous explanations, but none explain how to do it properly. I know that I can accomplish this using eclipse, but I would like to learn the know how and to understand how to make one myself without any help of IDE.