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

HelloFX not starting #39

Closed
DieterHolz opened this issue Aug 7, 2019 · 7 comments
Closed

HelloFX not starting #39

DieterHolz opened this issue Aug 7, 2019 · 7 comments

Comments

@DieterHolz
Copy link

running the sample 'HelloFX' leads to this error

> Task :run FAILED Loading library prism_es2 from resource failed: java.lang.UnsatisfiedLinkError: /Users/dieter/.openjfx/cache/12.0.2/libprism_es2.dylib: dlopen(/Users/dieter/.openjfx/cache/12.0.2/libprism_es2.dylib, 1): no suitable image found. Did find: /Users/dieter/.openjfx/cache/12.0.2/libprism_es2.dylib: code signature in (/Users/dieter/.openjfx/cache/12.0.2/libprism_es2.dylib) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed. /Users/dieter/.openjfx/cache/12.0.2/libprism_es2.dylib: stat() failed with errno=38 j

What can I do?

@jperedadnr
Copy link
Collaborator

Maybe you can try to remove the cache at /Users/dieter/.openjfx?

@DieterHolz
Copy link
Author

I did that already. Doesn't help.

BTW: I'm using AdoptOpenJDK 11.0.4

@jperedadnr
Copy link
Collaborator

I've found an unrelated issue but with similar error messages here. It mentions the Mac's System Integrity Protection. While it should only affect a given number of system folders, is there any chance that you have extended it to your Users folder? Do you have any kind of writing restrictions applied?

There is an option to move this cache to a different location, using System.setProperty("javafx.cachedir", "path/to/cache"); in your main method of the Application class (right before launch()).

Can you try setting a writable folder?

@DieterHolz
Copy link
Author

csrutil disable helps. HelloFX can be started via gradlew run.

I never did anything with SIP before and I don't think I'm the only one with this problem.

Shouldn't it be fixed in OpenJFX?

@johanvos
Copy link
Contributor

johanvos commented Aug 8, 2019

Can you open an issue for this on https://github.com/javafxports/openjfx ?

@taubeklavs
Copy link

I had the same issue, it was related to adoptium/temurin-build#1211

Reverting openjdk version to jdk-11.0.3+7 fixes it.

@jperedadnr
Copy link
Collaborator

The issue is indeed related to AdoptOpenJDK, and it seems it has been already fixed. The latest prerelease works fine for me.

@DieterHolz if you can verify this, feel free to close this issue.

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

5 participants