 <p>Make sure the generated classes are put into the same package as those that declare the protected members. Specifying 'the classpath that it should end up in' shouldn't really come into it, unless it is caused by classloading issues.</p>