Make some examples able to run

Added the missing loadNecessaryClasses(), set the classpath to be right.