Running a JAR file without directly calling `java`

前端 未结 3 1516
北海茫月
北海茫月 2020-11-30 01:09

I am deploying a command-line tool that is written in Java that accepts command-line arguments. I have it packaged as a JAR file because it is convenient to have a single f

3条回答
  •  佛祖请我去吃肉
    2020-11-30 01:34

    See Documentation/java.txt in the Linux Kernel documentation, which tells you how to configure a system using the binfmt_misc kernel module to run Jar files automatically. However, this is a configuration option you change on a computer, not something you change about the jar file, so it doesn't follow the jar file from system to system.

提交回复
热议问题