I\'ve tried both the example in Oracle\'s Java Tutorials. They both compile fine, but at run-time, both come up with this error:
Exception in thread \"main\"
NoClassDefFoundError means that the class is present in the classpath at Compile time, but it doesn't exist in the classpath at Runtime.
NoClassDefFoundError
Compile time
Runtime
If you're using Eclipse, make sure you have the shapes, linepoints and the spaceobjects as entries in the .classpath file.
shapes
linepoints
spaceobjects
.classpath