Error: Could not find or load main class Assignment1
System variables are set as -
JAVA_HOME = C:\Program Files\Java\jdk1.8.0_261
PTH = C:\Program Files\Java\jdk1.8.0_261\bin
On running the javac command on cmd prompt, I am getting this =
-classpath <path> Specify where to find user class files and annotation processors
-cp <path> Specify where to find user class files and annotation processors
Anything else I am missing here?
Instructor
Ashish Thakur Replied on 11/09/2020
with javac command you need to specify the name of .java file as well.