-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated .exe does nothing #237
Comments
Same results if you remove While libGDX in VirtualBox is usually a bad time (the highest OpenGL I've got out of it is 1.1, libGDX requiring 2.0 or gdx-angle-lwjgl3) that should be okay in your case since the JAR works. Java output gets redirected to the command line, so you'd know if it was getting that far. |
@Frosty-J let me check. My application is CLI, I don't care much about OpenGL stuff. I only use the VM because I don't have a windows box, just linux here. |
@Frosty-J after testing it's doing something strange.
So when I execute that exe from a nodejs app, I don't get the proper output, it's like I execute an app, then that app executes other app, and I need the output of that one (that's the one executed by java -jar xxx.jar). You can see what I mean in this gif |
If I run the jar directly I get the correct behavior:
Since I'm kind of in a hurry, I'll remove the exe and run the jar directly until there is some solution. Thanks! |
Packr returning control to the Windows command line is normal, despite the Java application's output also going there. It's possible it isn't well-suited to this; might want to try jpackage for shipping a JRE with your tool. |
@Frosty-J if it returns control without executing the jar on that thread, then it's unsuitable to actually run any CLI program. On Linux it seems to run the jar in the same thread it runs the generated executable. I can't use jpackage since I'm on JDK11, IIRC jpackage is JDK14. I'm still checking on how to do the macOS builds, but do you know if macOS executables behave like the linux ones or like the win ones? Thanks |
I don't know, so I'm not going to make any claims, but I predict it would behave like Linux on macOS, being Unix. I don't know how well it will work on the Apple Silicon Macs, since Packr is x64-only. |
I'm doing this for packaging a CLI app on Linux with the windows target:
In the out-win folder I have a .exe, when I try to execute it in a win virtual machine I get no output.
Though if I execute the jar directly: out-win\jre\bin\java -jar cabolabs-x-all.jar it works as expected.
I can't tell what's wrong with the .exe generated. There is no output at all, even from the cmd console.
Thanks!
The text was updated successfully, but these errors were encountered: