Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

dependency on javax.xml.bind makes it impossible to jlink on JDK 11 #546

Open
Sciss opened this issue Oct 14, 2021 · 3 comments
Open

dependency on javax.xml.bind makes it impossible to jlink on JDK 11 #546

Sciss opened this issue Oct 14, 2021 · 3 comments

Comments

@Sciss
Copy link

Sciss commented Oct 14, 2021

For example, using pi4j 1.4 in my project, I get

[error] Exception in thread "main" java.lang.module.FindException: Module java.activation not found, required by java.xml.bind
[error]     at java.base/java.lang.module.Resolver.findFail(Resolver.java:877)
[error]     at java.base/java.lang.module.Resolver.resolve(Resolver.java:191)
[error]     at java.base/java.lang.module.Resolver.resolve(Resolver.java:140)
...

This origin of this problem is module-info bug in javax.activation, this issue: fvarrui/JavaPackager#55

@FDelporte
Copy link
Member

See SO comment: Did you consider moving to Pi4J V2? That one is fully modularized and has only slf4j as dependency...

@Sciss
Copy link
Author

Sciss commented Oct 15, 2021

The two reasons for staying on 1.x are compatibility with JDK 8, and complete API change. If I compile my project as such, I am getting >50 errors, as apparently not a single class is the same in 2.x than in 1.x...

@FDelporte
Copy link
Member

Can you try version 1.3 regarding Java 8? 1.4 -> Java 11
https://pi4j.com/about/previous-version-v1/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants