[jira] [Commented] (XERCESJ-1769) Docs build is broken in Java 11 and 17

"Samael Bate (Jira)" <[email protected]>
Newsgroups gmane.text.xml.xerces-j.devel
Message-ID <[email protected]>
    [ https://issues.apache.org/jira/browse/XERCESJ-1769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18036500#comment-18036500 ] 

Samael Bate commented on XERCESJ-1769:
--------------------------------------

This should be closed now that XERCESJ-1776 is done. CI builds are passing with Java 8, 11, 17, 21

> Docs build is broken in Java 11 and 17
> --------------------------------------
>
>                 Key: XERCESJ-1769
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1769
>             Project: Xerces2-J
>          Issue Type: Bug
>            Reporter: Elliotte Rusty Harold
>            Assignee: Elliotte Rusty Harold
>            Priority: Critical
>
> at head ./build.sh docs gives
> {{     [java] Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/image/codec/jpeg/JPEGCodec}}
> {{     [java]     at org.apache.stylebook.printers.ImagePrinter.print(Unknown Source)}}
> {{     [java]     at org.apache.stylebook.BasicEntry.create(Unknown Source)}}
> {{     [java]     at org.apache.stylebook.Project.create(Unknown Source)}}
> {{     [java]     at org.apache.stylebook.StyleBook.main(Unknown Source)}}
> {{     [java] Caused by: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGCodec}}
> {{     [java]     at java.net.URLClassLoader.findClass(URLClassLoader.java:387)}}
> {{     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:418)}}
> {{     [java]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)}}
> {{     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:351)}}
> {{     [java]     ... 4 more}}
>  
> It works when building with Java 8. It might not be versions but a distinction between JDK vendors, some of which don't include this non-standard class. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.