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

Batik PDF/SVG Export won't build with newer Java Version #97

Closed
Skgland opened this issue Aug 17, 2021 · 2 comments
Closed

Batik PDF/SVG Export won't build with newer Java Version #97

Skgland opened this issue Aug 17, 2021 · 2 comments

Comments

@Skgland
Copy link
Contributor

Skgland commented Aug 17, 2021

In the newer Java (9+) Versions the module system was added and this disallows packages split over modules.
The problem is that the package org.w3c.dom is defined by the module java.xml in the Standard Library and by the dependencies

  • xml-apis.jar
  • batik-ext.jar

on the Classpath which contribute to the package.
This causes a build error as the package is defined in more than one module: and java.xml

@Skgland Skgland mentioned this issue Aug 17, 2021
2 tasks
@Skgland Skgland changed the title Batik PDF/SVG won't build with newer Java Version Batik PDF/SVG Export won't build with newer Java Version Aug 17, 2021
@Skgland
Copy link
Contributor Author

Skgland commented Aug 17, 2021

Batik apparently fixed this in 1.11 and it appears this repo Vendors 1.7

@Skgland
Copy link
Contributor Author

Skgland commented Aug 17, 2021

It appears that 1.11 still contains a problematic dependency on xml-apis https://issues.apache.org/jira/browse/BATIK-1289
a PR apache/xmlgraphics-batik#25 that should fix that exists

sailingKieler added a commit that referenced this issue Dec 22, 2022
…ctually required by our code, fixes #97

This avoids the 'The package org.w3c.dom is accessible from more than one module: <unnamed>, java.xml' error that is due to fact that classes of the 'org.w3c.dom' package are part of the JDK since Java9 (in module 'java.xml'), and also part of the packaged batik 1.7 distribution.

At runtime classes of the JDK/JRE will take precedence (root class loader is asked first), so their counterparts in the provided jar won't be loaded.
sailingKieler added a commit that referenced this issue Jan 9, 2023
…ctually required by our code, fixes #97

This avoids the 'The package org.w3c.dom is accessible from more than one module: <unnamed>, java.xml' error that is due to fact that classes of the 'org.w3c.dom' package are part of the JDK since Java9 (in module 'java.xml'), and also part of the packaged batik 1.7 distribution.

At runtime classes of the JDK/JRE will take precedence (root class loader is asked first), so their counterparts in the provided jar won't be loaded.
sailingKieler added a commit that referenced this issue Jan 9, 2023
…ctually required by our code, fixes #97

This avoids the 'The package org.w3c.dom is accessible from more than one module: <unnamed>, java.xml' error that is due to fact that classes of the 'org.w3c.dom' package are part of the JDK since Java9 (in module 'java.xml'), and also part of the packaged batik 1.7 distribution.

At runtime classes of the JDK/JRE will take precedence (root class loader is asked first), so their counterparts in the provided jar won't be loaded.
sailingKieler added a commit that referenced this issue Jan 9, 2023
…ctually required by our code, fixes #97

This avoids the 'The package org.w3c.dom is accessible from more than one module: <unnamed>, java.xml' error that is due to fact that classes of the 'org.w3c.dom' package are part of the JDK since Java9 (in module 'java.xml'), and also part of the packaged batik 1.7 distribution.

At runtime classes of the JDK/JRE will take precedence (root class loader is asked first), so their counterparts in the provided jar won't be loaded.
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