Run *.exe file from inside JAR

后端 未结 2 1617
耶瑟儿~
耶瑟儿~ 2020-12-10 22:22

I have a huge JAR file, which I created with Maven Shade plugin.

I run this with java -jar foo.jar , and my UI opens. Now I want to execute

2条回答
  •  [愿得一人]
    2020-12-10 22:56

    It's not about the location, it's about the fact that you need to tell your OS to run the exe and, unfortunately, you can't do that by providing a location within a jar.

提交回复
热议问题