Yes, the class is right. I don't know why its giving me that error either. I wonder if packaging it as a jar will solve the problem.