‘java.lang.NoClassDefFoundError’ in terminal mode
2009.11.25 Leave a comment
If you are getting a ‘java.lang.NoClassDefFoundError’ you most likely forgot the ‘-cp’ (classpath) option or the file forester.jar cannot be found where your ‘-cp’ points.
If you are in the same directory as the forester.jar you need to type:
% java -cp forester.jar org.forester.archaeopteryx.Archaeopteryx
If you are in a different directory than the jar file (the usual case), it is:
% java -cp /path/to/forester.jar org.forester.archaeopteryx.Archaeopteryx
In Windows, you need to use \ instead of /.
If you want to use a configuration file (example), you need to add:
-c path/to/_aptx_configuration_file