i think you incorrectly compiled (or referred) your class into its package - the "wrong name" error is one you get when you forget to compile a class using the package statement at the top of the java file and then try and refer to it as though it was in the package, or vice verse. For example: //package hello class World { } some code.... hello.World myMessage = new hello.World(); would raise this type of exception as would the following( which I think is your problem: package hello class World { } some code.... World myMessage = new World();