0

I write simple java program in notepad and try to run the program using cmd but got the "Error: could not find or load main class Hello".

I able to run program in eclipse but when i try to run using cmd then i face this problem.

class Hello
{
     public static void main(String args[])
     {
         System.out.println("Hello Parth...");
     }
}
Mofi
  • 42,677
  • 15
  • 72
  • 128
Parth Patel
  • 729
  • 1
  • 11
  • 20

1 Answers1

1

After all i found the answer.

I set Path manually. So i remove CLASSPATH, CATALINA_HOME, CATALINA, JAVA_HOME after that i restart my computer.

Finally my program run.

If any one face this problem then please try my way.

Parth Patel
  • 729
  • 1
  • 11
  • 20