I have been searching for many similar posts about this but I still can't find my answer. I want to convert a .java program into a Linux executable file, without the .jar extension. How can I do it? I am trying to use Launch4j java wrapper, JWrapper, IzPack, making a .sh, making a .bat, running it using java -jar myFile.jar etc. but none of them worked. Some procedures are complicated and difficult to debug. Is there any straightforward way to convert a .java file or .jar file into a Linux executable file?
I need to pass this program as a Linux executable as a whole into another program that takes this program as an argument.
.jar
into a here doc then write the rest of the script to unpack the data into a.jar
and run it. – Sondrasone