I am a new coder, taking an introduction Java course. My operating system is Windows 10. Around 4 - 5 months ago we initially set up the class path, ran our "Hello World" program from the command line, and never used it again.
Now we are doing an exercise with input / output re-direction to files, and I must of forgotten what my class path was, so I am trying to set it up again.
I have set up my classpath using the command:
set CLASSPATH=C:\Users\grant\IdeaProjects;
I then try to run my program, which is in the directory C:\Users\grant\IdeaProjects\SessionTwo\src\AssignmentFive\HexToDec.Class by typing:
java SessionTwo.src.AssignmentFive.HexToDec
I get the following error:
Error: Could not find or load main class IdeaProjects.SessionTwo.src.AssignmentFive.HexToDec Caused by: java.lang.ClassNotFoundException: IdeaProjects.SessionTwo.src.AssignmentFive.HexToDec
I have played with this quite a bit, but keep getting the error. Looking for any help on what I am doing wrong.
Thanks!