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
keep getting error "automatic module cannot be used with jlink" #140
Comments
No, you have not missed a step. Automatic Modules do_not work with jlink, by design. |
Then what moditect is for? |
ModiTect generates a full module descriptor for your project. It does not generate full module descriptors for dependencies. In this case it looks like This again is a restriction imposed by jlink itself. You can still run the application/project/library in the modulepath (with automatic modules) but cannot create jlink images. |
@aalmiray Is the add-module-info goal not for adding module descriptors to dependencies? |
@seanidzenga Ah yes, I missed that one. |
My pom.xml
my module-info.java
reflections and jnativehook are automatic modules
I added add-module-info and create-runtime-image goals trying to fix it
but I keep getting "Error: automatic module cannot be used with jlink: reflections from ... "
when I remove these dependencies from tag I get errors saying reflections is not a library...
Did I miss a step?
The text was updated successfully, but these errors were encountered: