why don't u set the classpath again? after compiling the program set the classpath to your current working folder.