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

automatic module cannot be used with jlink #21

Open
srilakshmikanthanp opened this issue Jan 3, 2022 · 3 comments
Open

automatic module cannot be used with jlink #21

srilakshmikanthanp opened this issue Jan 3, 2022 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@srilakshmikanthanp
Copy link

srilakshmikanthanp commented Jan 3, 2022

Hai, Thanks For Your work on this lib, I am using it to detect system theme but i am facing the issue with the dependencies

Error: automatic module cannot be used with jlink

I can't use it with the javafx:jlink due to this. Could you update the dependencies to latest version

@Dansoftowner
Copy link
Owner

Hopefully version 3.8 solves the problem

@srilakshmikanthanp
Copy link
Author

Thanks for your Response I am still facing this error,

if i run mvn javafx:jlink i got

Error: automatic module cannot be used with jlink: com.github.oshi from file:///C:/Users/srilakshmikanthanp/.m2/repository/com/github/oshi/oshi-core/5.8.6/oshi-core-5.8.6.jar
[ERROR] Command execution failed.

if i run mvn clean javafx:jlink i got

Error: automatic module cannot be used with jlink: org.slf4j from file:///C:/Users/srilakshmikanthanp/.m2/repository/org/slf4j/slf4j-api/1.7.32/slf4j-api-1.7.32.jar

in version 3.8

@Dansoftowner Dansoftowner added the help wanted Extra attention is needed label Jan 5, 2022
@Dansoftowner Dansoftowner pinned this issue Jan 5, 2022
@ctipper
Copy link

ctipper commented Jan 10, 2022

There are ways to use jlink with automatic modules, but it's not supported by default, see for example this thread
https://stackoverflow.com/a/63627730

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants