HydrolienF / Formiko

Formiko is a game about Ant.
https://formiko.fr
Other
5 stars 0 forks source link

Launcher: Launcher can't launch java in /opt/... #621

Closed HydrolienF closed 2 years ago

HydrolienF commented 2 years ago

Describe the bug Launcher can't launch java in /opt/...

To Reproduce Steps to reproduce the behavior:

  1. Download Formiko1.0.12 for linux
  2. install it with sudo apt install ./FormikoLauncher.deb
  3. Launch with formiko

Expected behavior Have a file that can launch .jar

Desktop (please complete the following information):

Additional context java command work when user call it.

HydrolienF commented 2 years ago

That's exactly what I am triing to do https://stackoverflow.com/questions/68969158/how-to-run-another-jar-file-when-the-current-program-has-a-bundled-jre

HydrolienF commented 2 years ago

A way to fix it can be to use the jlink generated zip. java/ folder. It will need to have 2 JRE on the same computer. It will allow to have separate modules or JRE version between launcher & game.

HydrolienF commented 2 years ago

File in ~/.formiko/ can't be run with java even with 777 perm

HydrolienF commented 2 years ago

permission are not refused when runing launcher with maven

HydrolienF commented 2 years ago

It's definitivly a permission issues with the JRE

HydrolienF commented 2 years ago

Giving all perms to /opt/formiko/ on linux & to downloaded file from a zip file fix it.