[ https://issues.apache.org/jira/browse/XERCESJ-1769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18008562#comment-18008562 ]
Samael Bate commented on XERCESJ-1769: -------------------------------------- The problem is related to StyleBook (the project currently uses {{{}stylebook-1.0-b2.jar{}}}) still using {{com.sun.image.codec.jpeg}} even though it was removed from the JDK years ago. Annoyingly this issue was known about years ago ([https://bz.apache.org/bugzilla/show_bug.cgi?id=32677)] but instead of doing the sane fix of simply using ImageIO, some hacky ant config was done to exclude ImagePrinter.java from the build. I've checked stylebook out from the svn repo (http://svn.apache.org/repos/asf/xml/stylebook/trunk/) and made changes to the build file and sources to get a decent build on my machine. Not sure whether it's worth trying to supply a patch file anywhere for this. I can confirm that after building {{stylebook-1.0-b3_xalan-2.jar}} locally and updating the build.xml to use my jar I was able to successfully run: {{ant -noinput -buildfile build.xml all}} > 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) --------------------------------------------------------------------- To unsubscribe, e-mail: j-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: j-dev-h...@xerces.apache.org