Skip to content
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

Installed JRE is used instead of bundled JRE #207

Open
jdonkers opened this issue Jul 11, 2021 · 1 comment
Open

Installed JRE is used instead of bundled JRE #207

jdonkers opened this issue Jul 11, 2021 · 1 comment

Comments

@jdonkers
Copy link

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

@petoncle
Copy link

petoncle commented Oct 8, 2021

Is your jar file a runnable jar, does it contain a manifest file with a Main-Class entry? Are you sure the users are running the .exe file and not the .jar file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants