David W
03/05/2022, 5:06 AMjre
that contains a jre, the exe appears to try to use that JRE instead of the one in the exe's folder.
./ComposeApp/app.exe
./jre/bin/java.exe
It crashes before even getting to my Main method, and running it from cmd outputs:
C:\Program Files (x86)\Fractal Softworks\Starsector\SMOL_Dist> .\SMOL.exe
Error: could not open `C:\Program Files (x86)\Fractal Softworks\Starsector\jre\lib\jvm.cfg'(not that the
jre
folder is ../jre
, relative to the exe)
If I move the application folder anywhere else, it runs fine. If I rename jre
to anything else, it runs fine.
Anyone have any ideas as to what could be causing this? I don't want it to have any interaction with that jre folder, it's pure coincidence that many users are placing it next to a jre
folder.