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
cd up to the root package. Most of the cases it will be src folder in the Project if created from eclipse IDE.
cd
java -cp . org.kodeplay.kodejava.NewHelloWorld should work
java -cp . org.kodeplay.kodejava.NewHelloWorld
java org.kodeplay.kodejava.NewHelloWorld should also work. I tried both the things and it works fine in both the case
java org.kodeplay.kodejava.NewHelloWorld