Installed JRE is used instead of bundled JRE
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 2.6k
- Forks
- 174
- PR merge metrics
- No merged PRs in 30d
Description
I'm developing a game and using packr to bundle it (it is a very useful tool so first of all thank you!).
The issue I am having is regarding windows-64 users who already have Java installed. When they execute the packr bundled .exe their local Java is used instead to run the JAR instead of the bundled JRE as expected.
I know this is happening because:
- users who were receiving a blank screen when executing the game were able to fix this by updating their local Java version
- I can reproduce the error user are seeing by executing the JAR with their version of java.
Any help would be appreciated, thank you.
Here are my settings:
java -jar packr-all.jar
--platform windows64
--jdk "[JDK PATH]"
--useZgcIfSupportedOs
--executable [NAME]
--classpath [NAME].jar --mainclass [NAME].Main
--output out-windows
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
Reproduce the issue with the provided Windows 64-bit packr command on a machine that has Java installed, then compare which runtime launches the generated .exe. Done means the bundled JRE is selected instead of the installed Java runtime, including for users whose local Java version would otherwise produce the reported blank screen.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100