Launcher: Launcher can't launch java in /opt/...
HydrolienF opened this issue · 6 comments
Describe the bug
Launcher can't launch java in /opt/...
To Reproduce
Steps to reproduce the behavior:
- Download Formiko1.0.12 for linux
- install it with
sudo apt install ./FormikoLauncher.deb
- Launch with formiko
Expected behavior
Have a file that can launch .jar
- During github action add a JREversion.md in Formiko$(version).zip that contains the needed JRE version.
- Be able to download part of a zip file as an args
- Launcher is able to download https://github.com/HydrolienF/JRE/releases/download/$(JREversion)/jlink.zip/j$(Os)/* into .formiko/game/JRE/.
- When a new Formiko.zip is download check that .formiko/game/JRE/JREversion/bin/java(.exe) exist, if not try to download it
- use .formiko/game/JRE/JREversion/bin/java(.exe) for the java cmd
- test on Windows
- find an other way to fix it
- if C:\Program Files\Formiko\app\JREVersion.md is the wanted version. Don't download a new JRE & use C:\Program Files\Formiko...\java.exe insted.
We just need to add this possibility in getJavaCommand()
Desktop (please complete the following information):
- OS: Debian
Additional context
java command work when user call it.
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
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.
File in ~/.formiko/ can't be run with java even with 777 perm
permission are not refused when runing launcher with maven
It's definitivly a permission issues with the JRE
Giving all perms to /opt/formiko/ on linux & to downloaded file from a zip file fix it.