Further to this, I built batik-1.9 from source using JDK9 and got the same
issue.

Investigating, this is due to:
java.lang.NoClassDefFoundError: org/w3c/dom/Window

Class org.w3c.dom.Window is defined in batik-ext.jar. Other classes in the
org.w3c.dom package (e.g. Node) are provided by the runtime (running with
-verbose says it's from jrt:/java.xml) but Window isn't. My conjecture is
that this prevents the classloader from looking any further into jars
specified by the application, and maybe this has changed between JDK8 and 9.

I then renamed the package in the source for batik-ext.jar and fixed up all
the references in the rest of batik. Obviously this is only a hack. Then I
found that I could start squiggle and open an SVG file. I don't know if
this caused any other issues elsewhere.

Hope this helps,
Peter



On Fri, 6 Oct 2017 at 11:08 Peter Hull <peterhul...@gmail.com> wrote:

> The binary download of Batik Squiggle 1.9 is not working for me under Java
> 9 (Windows 10); it hangs whilst displaying the splash screen. I believe
> this has already been reported in December 2016[1].
> I can investigate further but I wanted to check first in case it was
> already known about and fixed.
> Thanks,
> Peter
> [1]:
> http://mail-archives.apache.org/mod_mbox/xmlgraphics-batik-users/201612.mbox/raw/%3C006f01d252da%24286b8950%2479429bf0%24%40tosovsky%40tiscali.cz%3E
>

Reply via email to