-1

C:\Users\DELL\Downloads>javac first.java

C:\Users\DELL\Downloads>java first Error: Could not find or load main class first Caused by: java.lang.ClassNotFoundException: first

  • "I know I am required to go to C:\Programefiles\java\jdk." No you're not. It's in the path. You need to go to the directory where your first.java file is *or* provide the full path to the file to the `javac` command. – Federico klez Culloca Sep 14 '20 at 11:12

1 Answers1

0

Your description is a bit confusing but I think your javac tells that it did not find your first.java class.

Verify your javac by simply calling javac in a teminal. If it returns the manual than your installation is correct.

You can try to call the first.java file with absolute path too.

danielbene
  • 25
  • 6