Code Monkey home page Code Monkey logo

Comments (9)

jahewson avatar jahewson commented on July 24, 2024

I tried running the "hello" binary directly from the terminal (with "Contents" as the working directory), still no luck but I get the following output:

config file: /Users/john/Desktop/out.app/Contents/MacOS/config.json
jar: /Users/john/Desktop/out.app/Contents/MacOS/gui.jar
mainClass: com/example/gui/HelloWorld
No Java runtime present, requesting install.

Then I see the same dialog.

from packr.

badlogic avatar badlogic commented on July 24, 2024

Can confirm, the joy of testing o the development system...

I think i'll have to rewrite the jvm so loading to us dl instead of rpaths.

Thanks for reporting!
On May 7, 2014 7:29 PM, "John Hewson" [email protected] wrote:

I tried running the "hello" binary directly from the terminal (with
"Contents" as the working directory), still no luck but I get the following
output:

config file: /Users/john/Desktop/out.app/Contents/MacOS/config.json
jar: /Users/john/Desktop/out.app/Contents/MacOS/gui.jar
mainClass: com/biblific/gui/HelloWorld
No Java runtime present, requesting install.

Then I see the same dialog.


Reply to this email directly or view it on GitHubhttps://github.com//issues/10#issuecomment-42457312
.

from packr.

badlogic avatar badlogic commented on July 24, 2024

This should be fixed, please try the latest packr and let me know if that worked for you!

from packr.

jahewson avatar jahewson commented on July 24, 2024

Unfortunately not, I tried it with fb8cac2 built from source and I'm still getting the same dialog.

from packr.

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

Maybe packr doesn't find your JVM archive? Be sure you are specifying an absolute path, or a relative path to the working directory for the "-jdk" parameter.

As a slightly related side note, as stbachmann and me are troubleshooting in the same area right now: when started with the openjdk-1.7.0-u40 JVM, OSX complains about X11 not been installed on my system. Seems this dependency was removed with u45.

from packr.

jahewson avatar jahewson commented on July 24, 2024

The JDK is there in the output bundle, in Contents/MacOS/jre. I can confirm that Contents/MacOS/jre/lib/server/libjvm.dylib is being loaded, as if I remove from the bundle I get a segfault.

from packr.

dan-fitzgerald-av avatar dan-fitzgerald-av commented on July 24, 2024

I'm still seeing this issue as well. My workaround was adding the "bin/java" file from openJDK to the package and writing a .command script to run "jre/bin/java -jar [app.jar]." Then in my info.plist I changed CFBundleExecutable to the name of that .command script. Pretty hacky! Unfortunately then my app gets an openJDK icon when run instead of the icon I provided.

from packr.

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

@dan-fitzgerald-av You might get your icon back adding "-Xdock:icon=/path/to/icon.png" to your command script.

I'm trying to resolve this right now by modifying packr for MacOS to do more or less the same you did with your script. I'll yet have to see how ugly it gets... :)

from packr.

 avatar commented on July 24, 2024

I don't reproduce this bug. One of my testers is under Mac OS X 10.9.4, I put OpenJDK 1.7 update 65 into my application bundle.

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.