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

Java 20 "Missing Foreign Linker API" #22

Closed
TheHardew opened this issue May 14, 2023 · 2 comments
Closed

Java 20 "Missing Foreign Linker API" #22

TheHardew opened this issue May 14, 2023 · 2 comments
Labels
released Issue has been released

Comments

@TheHardew
Copy link

I tried to run komga with java 20, and I got this error:

2023-05-14 14:08:04.296  WARN 502417 --- [           main] c.g.g.n.j.i.plugins.JxlImageReaderSpi    : Missing Foreign Linker API, plugin will be disabled. Try adding JVM arguments: --enable-preview

I'm already using this option and everything works correctly with java 19.
This is how I launch komga:

~ $ cat /bin/komga
#!/bin/sh
exec /usr/bin/java --enable-preview -Dforeign.restricted=permit -jar '/usr/share/java/komga/komga.jar' "$@"

Am I doing something wrong?
I tried to search the web, but google can't even find one page with "Missing Foreign Linker API".

@gotson
Copy link
Owner

gotson commented May 14, 2023

The foreign linker API is still in preview, it changes at each JDK.

The library requires JDK 19 for now. I don't have much time to update it to JDK 20.

@gotson gotson closed this as completed in cdece69 Sep 26, 2023
@github-actions
Copy link
Contributor

🎉 This issue has been resolved in v0.5.0 (Release Notes)

@github-actions github-actions bot added the released Issue has been released label Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Issue has been released
Projects
None yet
Development

No branches or pull requests

2 participants