‘java.lang.NoClassDefFoundError’ in terminal mode

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: