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

What exactly is packr looking for (Couldn't find JRE in JDK) #129

Closed
cyberpwnn opened this issue Aug 21, 2018 · 9 comments
Closed

What exactly is packr looking for (Couldn't find JRE in JDK) #129

cyberpwnn opened this issue Aug 21, 2018 · 9 comments

Comments

@cyberpwnn
Copy link

I am trying to package a mac app. I have tried the following

  • The Zulu MacOSX Zip (and as a folder, extracted too)
  • Installed Oracle JDK on a mac, copied it over to a folder (and zipped it up too)

And every time, I get the same Couldn't find JRE in JDK. Can I not just specify a jre? There isnt much to go on from the readme. Why does this feel so rigid to work with.

@SaadArdati
Copy link

What was your solution?

@nyholku
Copy link

nyholku commented Dec 5, 2018

Why is this closed ... my first attempt to use packr failed for just this reason. I looks to me that problem is (perhaps) that post JDK/JRE 8 there is no folder named jdk/jre in the distrubutions and if that is the case then this should be fixed in packr or if that is not the case then the instructions should be updated to reflect what works and/or pointer here to the relevant info should be added.

@RouHim
Copy link

RouHim commented Jan 8, 2019

Since Java 11 there is no jre in the jdk folder anymore. There is now only one jdk. This should now be fixed as packr is not compatible with openjdk 11.

More information can be found here.

@timmolter
Copy link

Please re-open this issue. Until packr is updated for Java 11, this issue completely kills packr as a viable tool. I'm happy to fix it and submit a PR if it's not too involved.

@timmolter
Copy link

I worked around this by manually moving bin and lib to a new folder named jre before zipping the JDK.

@FranPrin
Copy link

Awesome timmolter!

@gowthams33
Copy link

I am trying to build window app. But I got below Error..
java.io.IOException: Couldn't find JRE in JDK, see '***EXE\out-mac\tmp'
at com.badlogicgames.packr.Packr.copyAndMinimizeJRE(Packr.java:268)
at com.badlogicgames.packr.Packr.pack(Packr.java:69)
at com.ogs.application.installer.JavaInstaller.main(JavaInstaller.java:25)
Kindle help on this issue.

@bendeguz-szatmari
Copy link

I worked around this by manually moving bin and lib to a new folder named jre before zipping the JDK.

If you run into security exceptions like java.lang.SecurityException: Can't read cryptographic policy directory: unlimited, make sure to include conf folder aswell.

@brad-eric
Copy link

I worked around this by manually moving bin and lib to a new folder named jre before zipping the JDK.

That has helped me create my package which i'm embedding Java 9 inside it, but when running it i get the error:

jre/lib/amd64/server/libjvm.so: cannot open shared object file: No such file or directory
Error: failed to load VM runtime library!

Java 9 doesn't have the "amd64" folder! ... That was in Java 8 but not in Java 9. I guess Packr will not work with Java > 8 anymore :(

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

9 participants