Packr Windows exe 不起作用



从 https://github.com/libgdx/packr 下载了打包程序Packr json 是

{
"platform": "windows64",
"jdk": "C:/Program Files/Java/jdk1.8.0_72",
"executable": "myapp",
"classpath": [
    "input/test-hello.jar"
],
"mainclass": "Main",
"vmargs": [
   "Xmx1G"
],
"minimizejre": "soft",
"output": "out-windows64",
"verbose": true

}test-hello.jar 有 Main.class它只是在 System.out 上写"Hello"。打包 exe 时未报告错误。但是,当我运行 exe 时,控制台上没有输出。json 中有什么我缺少的吗?有没有人有一个简单的工作示例?

例如,您需要包含主类的路径

"mainclass": "com.example.Main",

最新更新