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...");
}
}
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.