Comments (9)
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.
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.
This should be fixed, please try the latest packr and let me know if that worked for you!
from packr.
Unfortunately not, I tried it with fb8cac2 built from source and I'm still getting the same dialog.
from packr.
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.
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.
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.
@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.
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)
- XstartOnFirstThread hangs forever on OSX HOT 1
- LWJGL3 crashes on OSX HOT 4
- Packr cannot recognise `jrePath` Temurin JRE and JDK zips for Windows HOT 8
- Load configuration file relative to executable location, not working directory HOT 1
- Can you create Linux binary that makes use of installed Java on Linux instead of packaging one with packr?
- How to make generated app to use current working dir as its working dir instead of app's dir?
- FEATURE REQUEST HOT 1
- Consulting: Complicated packaging methods
- Packing with Oracle JDK causes error HOT 2
- Mac keeps throwing permission denied HOT 1
- Error 503 from https://artifactory.nimblygames.com while building HOT 1
- Version 4.0.0 missing from artifactory HOT 2
- Error when execute .exe file
- classpath is empty when retrieving it.
- Frame blurry when starting with bundled launcher
- Can you add an option to remove the previous out directory if it exists?
- Generated .exe does nothing HOT 8
- packr repo seems not to work HOT 1
- 关于windows打包的问题
- 关于linux/macos打包的问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packr.