I don't see why you would get java.lang.ClassNotFoundException. Was your Basic class in a file named "Basic.java"?
The code you've posted won't compile because you're calling a non-static method, method(), from the static context of main. Please check to make sure you've posted the exact same code that you're running.