After installing JDK on my Windows 10 machine, I can't seem to set it up so I can run javac and java commands directly from command prompt. I've tried setting environment variables, restarting PC, but it didn't work either.
When I type the full path to javac.exe in command prompt and try to compile the program that way, it works, but when I try to run the program with 'java' command, I get an error:
"Could not find or load main class HelloWorld
Caused by: java.lang.ClassNotFoundException: HelloWorld"
When I type the full path to javac.exe in command prompt and try to compile the program that way, it works, but when I try to run the program with 'java' command, I get an error:
"Could not find or load main class HelloWorld
Caused by: java.lang.ClassNotFoundException: HelloWorld"