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

Some files are loaded from the jre-bin dir #16

Closed
ensonic opened this issue Jun 23, 2018 · 2 comments
Closed

Some files are loaded from the jre-bin dir #16

ensonic opened this issue Jun 23, 2018 · 2 comments

Comments

@ensonic
Copy link
Contributor

ensonic commented Jun 23, 2018

Copied from #11 (comment)

When stracing a program using Pandomium I get:

32719 open("/home/ensonic/projects/pandomium-example/native/liblinuxenv.so", O_RDONLY) = 20
32719 open("/home/ensonic/projects/pandomium-example/native/liblinuxenv.so", O_RDONLY|O_CLOEXEC) = 20
32719 open("/usr/lib/jvm/java-8-openjdk-amd64/jre/bin", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 20
32719 symlink("/home/ensonic/projects/pandomium-example/native/icudtl.dat", "/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/icudtl.dat") = -1 EACCES (Permission denied)

and that of course cannot work. What is this trying to achieve?

If I manually copy (3 files), it starts.

sudo cp native/icudtl.dat /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/
sudo cp native/natives_blob.bin /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/
sudo cp native/snapshot_blob.bin /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/

Seems to be similar issue like
cztomczak/cefpython#231
can we apply the same fix?

Here is some special casing does for linux:
https://github.com/dzikoysk/Pandomium/blob/HEAD/pandomium/src/main/java/org/panda_lang/pandomium/loader/PandomiumLoaderWorker.java#L43

@dzikoysk
Copy link
Owner

dzikoysk commented Jun 29, 2018

Could you try to add native directory to your PATH? (Also remove these copied files from /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/)

@ensonic
Copy link
Contributor Author

ensonic commented Jul 3, 2018

Actually it works now. Some update in between seems to have fixed it. Thanks a lot!

@ensonic ensonic closed this as completed Jul 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants