I am a java newbie. I have been using Eclipse to test a simple java class (named NewHelloWorld) and it runs fine in the console. When I try to do the same thing from a termi
The error message gives you a clue:
(wrong name: org/kodeplay/kodejava/NewHelloWorld)
It looks like your class is called org.kodeplay.kodejava.NewHelloWorld. The Java command line needs to know the fully qualified class name:
org.kodeplay.kodejava.NewHelloWorld
java -cp . org.kodeplay.kodejava.NewHelloWorld
should do the trick.