Code Monkey home page Code Monkey logo

Comments (4)

koesie10 avatar koesie10 commented on July 24, 2024 1

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.

from packr.

badlogic avatar badlogic commented on July 24, 2024

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 [email protected]
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.

from packr.

Jyro117 avatar Jyro117 commented on July 24, 2024

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.

from packr.

badlogic avatar badlogic commented on July 24, 2024

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.

from packr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.