Code Monkey home page Code Monkey logo

Comments (4)

code-disaster avatar code-disaster commented on July 24, 2024
  • Another option which might be a little more conservative: add a command line switch, e.g. "--use-system-jre" which ignores the bundled version. Wouldn't be some black magic, but would require user interaction.

from packr.

 avatar commented on July 24, 2024

If I were you, I would ask to the end users to upgrade from OS X 10.6.8 to 10.7 which is free and I would bump the minimum requirements to OS X 10.7. If they had to pay to upgrade, they could be angry but it's not the case.

In my humble opinion, it would be more relevant to support the system JVM everywhere or nowhere. Supporting it only under OS X would be confusing. Moreover, some libraries no longer work under OS X 10.6.8 and some libraries that rely on the private classes of AWT support only Oracle Java and OpenJDK. Poxnora uses JOGL 2, it should work under OS X 10.6.8 but not with the latest update of OpenJDK 1.7.

from packr.

code-disaster avatar code-disaster commented on July 24, 2024

Yes, I'm kind of at a dead-end here. Especially without a real system at hand to test this properly.

For our game I've implemented a detection for 10.6, and fall back to using the system JRE in that case. To locate libjvm.dylib I search for $JAVA_HOME first, and if that fails, check for /usr/libexec/java_home.

Still, in my latest round of that lasting fight, I struggle with libjvm.dylib apparently only available as a 32-bit library in Apple's 1.6 JRE, which doesn't like to load from a 64-bit (or 32/64-bit universal) packr executable.

At the current state I tend to just close the case. It's not really worth fighting for a really small number of customers.

from packr.

 avatar commented on July 24, 2024

I have a Mac Book Pro with OS X 10.6.8, I use it only for my tests. If one of your libraries is 32/64-bit universal, it won't work with Apple JRE :(

"a really small number of customers" who can still upgrade to OS X 10.7 for free.

Personally, I'm not a big fan of switching to the system JRE at runtime in certain cases and using the "same" JRE everywhere eases the maintenance, you don't have to work around Apple JRE-specific concerns. My Ant script does most of what PackR does (except minimizing the JRE), it uses only its native launchers if needed with the option of replacing them by portable scripts and then a flag allows to force the use of the system JRE but there is no JRE detection at runtime. I'm quite satisfied by my solution even though I haven't tested the script (replacing the native launcher) under Mac and Windows yet.

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.