I have made an application using jpackage. When I try to open the app nothing happens apart from the icon appearing in the dock (bouncing up and down), and after 1 second it closes itself again. However if I run Asteroids.app > Contents > MacOS > Asteroids.exe
it works perfectly fine.
What am I doing wrong and how can I fix this?
App contents:
/Applications/Asteroids.app/Contents
├── Info.plist
├── MacOS
│ └── Asteroids.exe
├── PkgInfo
├── Resources
│ └── Asteroids.icns
├── app
│ ├── Asteroids.cfg
│ └── prosjekt_boilerplate-1.0-SNAPSHOT-jar-with-dependencies.jar
└── runtime
└── Contents
├── Home
├── Info.plist
└── MacOS