Using batik-rasterizer.jar from version 1.7 of batik, I was wondering how to call the jar correctly.
java -jar batik-rasterizer-1.7.jar -m image/png -q 0.8 $1
Which gave me:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/batik/i18n/LocalizableSupport
Therefore, I was looking for the correct MainClass and ClassPath to use. I’ll post a script I came up with as an answer in a minute …
This script gets all necessary jars from the maven repository into a classpath variable. Probably there is a better way e.g. repacking using maven …
to get the libraries i created a dummy maven project with the following pom.xml: