Hello,
I wanted to start mendelson AS2 on Linux (Raspbian (with OpenJDK 11) or Linux Mint 19 (with Oracle Java 13)) but i got both times this Java exception:
jan@jan-VirtualBox:~/Downloads$ java -version
java version "13.0.2" 2020-01-14
Java(TM) SE Runtime Environment (build 13.0.2+8)
Java HotSpot(TM) 64-Bit Server VM (build 13.0.2+8, mixed mode, sharing)
jan@jan-VirtualBox:~/Downloads$ cd ..
jan@jan-VirtualBox:~$ cd mendelson_as2/
jan@jan-VirtualBox:~/mendelson_as2$ sh mendelson_as2_start.sh
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/batik/bridge/UserAgent
at de.mendelson.util.Splash.loadImage(Splash.java:371)
at de.mendelson.util.Splash.(Splash.java:85)
at de.mendelson.comm.as2.AS2.main(AS2.java:107)
Caused by: java.lang.ClassNotFoundException: org.apache.batik.bridge.UserAgent
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 3 more
I used the unchanged package 'install_mendelson_opensource_as2_1.1b57.zip'
Does someone know how to fix this?
Many thanks and best regards
Jan
Comments
Jan, you have to include the…
Submitted by service on Thu, 01/16/2020 - 09:51
Jan,
you have to include the jlib/svg/*.jar files into your classpath. I just checked the linux start script, there is a problem in the SVG part:
---
if [ -d jlib/svg ]; then
SVGDIR=jlib/svg
export svgDIR
for jar in `ls $svgDIR/*.jar $svgDIR/*.zip 2>/dev/null`
do
CLASSPATH=$CLASSPATH:$jar
done
fi
--
has to be changed to
--
if [ -d jlib/svg ]; then
SVGDIR=jlib/svg
export SVGDIR
for jar in `ls $SVGDIR/*.jar $SVGDIR/*.zip 2>/dev/null`
do
CLASSPATH=$CLASSPATH:$jar
done
fi
--
I will upload a modified start script to sourceforge.
Regards