I've just updated JTS to its current trunk version and it resulted
in breaking the testbuilder:
$ sh build/dist/bin/testbuilder.sh .
Exception in thread "main" java.lang.ExceptionInInitializerError
at
com.vividsolutions.jtstest.testbuilder.model.TestBuilderModel.<clinit>(Unknown
Source)
at com.vividsolutions.jtstest.testbuilder.JTSTestBuilder.<init>(Unknown
Source)
at com.vividsolutions.jtstest.testbuilder.JTSTestBuilder.main(Unknown Source)
Caused by: java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(ImageIcon.java:217)
at
com.vividsolutions.jtstest.testbuilder.AppConstants.<clinit>(Unknown Source)
The testbuilder.sh (which used to work in some previous version)
is not in the repo (would be great to add it). It is as follows:
#!/bin/sh
#to change L&F if desired. Blank is default
JAVA_LOOKANDFEEL="-Dswing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel"
#JAVA_LOOKANDFEEL=""
JAVA_OPTS="-Xms256M -Xmx1024M"
APP_OPTS=""
if test "x$JTS_LIB_DIR" = "x"; then
JTS_LIB_DIR=`dirname $0`/../lib/
fi
#---------------------------------#
# dynamically build the classpath #
#---------------------------------#
CP=
for i in `ls ${JTS_LIB_DIR}/*.jar`
do
CP=${CP}:${i}
done
#---------------------------#
# run the program #
#---------------------------#
MAIN=com.vividsolutions.jtstest.testbuilder.JTSTestBuilder
java -cp ".:${CP}" $JAVA_OPTS $JAVA_LOOKANDFEEL $MAIN $APP_OPTS
Ideas about what could be failing ?
--strk;
------------------------------------------------------------------------------
_______________________________________________
Jts-topo-suite-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user