I have a huge JAR file, which I created with Maven Shade plugin.
Maven Shade
I run this with java -jar foo.jar , and my UI opens. Now I want to execute
java -jar foo.jar
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.