Generated .exe does nothing
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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