Debian run jar like a native program

sudo apt install binfmt-support jarwrapper

好比 swagger-codegenapp

wget -O ~/.local/bin/swagger-codegen https://oss.sonatype.org/content/repositories/releases/io/swagger/swagger-codegen-cli/2.2.1/swagger-codegen-cli-2.2.1.jar
chmod a+x ~/.local/bin/swagger-codegen

# run
swagger-codegen
相關文章
相關標籤/搜索