libgdx / libgdx/packr

Generated .exe does nothing

Open
#237 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
2.6k
Forks
174
PR merge metrics
No merged PRs in 30d

Description

I'm doing this for packaging a CLI app on Linux with the windows target:

export WIN_JAVA_HOME=/home/pablo/GitHub/jdk-11.0.22+7-win
java -jar packr-all-4.0.0.jar --platform windows64 --jdk $WIN_JAVA_HOME --useZgcIfSupportedOs --executable norapp --classpath app/build/libs/cabolabs-x-all.jar --mainclass com.cabolabs.automation.App --output out-win

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!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the supplied packr-all-4.0.0.jar command, the generated out-win .exe, and the direct out-win\jre\bin\java invocation for the named main class. Compare how the executable starts the packaged JAR in the Windows VM; done means the generated .exe launches the application and produces the expected output.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.