title: How to convert a .java or a .jar file into a Linux executable file ( without a .jar extension, which means it's not a .jar file )
body: <p>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? </p>
  
  <p>I need to pass this program as a Linux executable as a whole into another program that takes this program as an argument. </p>