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

Allow packr without JRE #17

Closed
Jyro117 opened this issue May 29, 2014 · 4 comments
Closed

Allow packr without JRE #17

Jyro117 opened this issue May 29, 2014 · 4 comments

Comments

@Jyro117
Copy link

Jyro117 commented May 29, 2014

Would really like a way to package an application that uses the system JRE instead of packing a minimized version. This way I can instead require users to have Java installed and reduce the size of my application.

@badlogic
Copy link
Member

Interesting idea. Not sure how we could achieve that. We'd need a way to
figure out the location of the system JVM.

On Thu, May 29, 2014 at 6:20 PM, Devin Chollak notifications@github.com
wrote:

Would really like a way to package an application that uses the system JRE
instead of packing a minimized version. This way I can instead require
users to have Java installed and reduce the size of my application.


Reply to this email directly or view it on GitHub
#17.

@Jyro117
Copy link
Author

Jyro117 commented May 29, 2014

I know on Linux and Windows, if a Java JRE 7 or 8 is installed it will be on the system path by default. Mac OS X I do not know if that is the case.

Potentially if it isn't found, a prompt to: https://www.java.com/en/download/ could be an alternative.

I know Eclipse provides an executable for all platforms which can run without packaging a JRE.

This is similar to how Launch4j works: http://launch4j.sourceforge.net/; however, I'm looking for a solution for Mac OS X and Linux, since Launch4j is only for Windows deployments.

@koesie10
Copy link

According to Stack Overflow, the most recent Java version is always registered in the registry on Windows. The following steps would need to be executed:

  • Open the key HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment
  • Read the CurrentVersion REG_SZ
  • Open the subkey under Java Runtime Environment named with the CurrentVersion value
  • Read the JavaHome REG_SZ to get the path

I don't know about the other ones though.

@badlogic
Copy link
Member

I'm afraid this is not a goal for Packr. I'm happy to receive PRs for this, but will likely not spend any time on this myself.

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

3 participants