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

Configuring reflections for a GraalVM native image - Help wanted. #1128

Open
Jajaho opened this issue Sep 15, 2022 · 0 comments
Open

Configuring reflections for a GraalVM native image - Help wanted. #1128

Jajaho opened this issue Sep 15, 2022 · 0 comments

Comments

@Jajaho
Copy link

Jajaho commented Sep 15, 2022

 * JGraphT version: 1.5.1
 * Java version (java -version)/platform:  16

Hey,
im trying to get my native image to work using jgrapht, gradle and graalvm as well as picocli in IntelliJ.
My full code is on github and I have documented my issue in this wiki page.
Picocli has an annotation processor that handles the reflection config and so on for native image.

Issue

The code compiles to a native image but when trying to add an edge to the graph I get a java.lang.NoSuchMethodException: org.jajaho.data.Edge.(). So I'm trying to figure out how to get jgrapht to play nice with graalvm. I have no clue how to manually add and include the config files you posted above and whether they might fit my code.

I would greatly appreciate any help.
Thank you

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

1 participant