I've got an error in JSTS (JavaScript Topology Suite) library based on JTS (Java Topology Suite) v1.12 (r405). But there is no error in the last build of JTS on the same test case. So I want to check this test case in older JTS v1.12.

enter image description here

However, I can't run the GUI (testbuilder.bat) due to error

Could not find the main class. Program will exit.

enter image description here

under Windows, and in Ubuntu:

neadmin@myubuntu:~/SVN/JTS/jts/bin$ ./testbuilder.sh Exception in thread "main" java.lang.NoClassDefFoundError: com/vividsolutions/jtstest/testbuilder/JTSTestBuilder Caused by: java.lang.ClassNotFoundException: com.vividsolutions.jtstest.testbuilder.JTSTestBuilder at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:323) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:268) Could not find the main class: com.vividsolutions.jtstest.testbuilder.JTSTestBuilder. Program will exit.

enter image description here

I have Windows 7 x64 (or Ubuntu 14.04) and Java 5u22 (or 6u45).

I am asking about JTS, but it is related to JSTS...
I have Java and English on "you".


It looks like you are using an SVN checkout of JTS so you need to compile it.

Alternatively just use the precompiled binaries from http://sourceforge.net/projects/jts-topo-suite/files/jts/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.