Let me summarize the problem:
java Main
I would get my Main.java/class
application back.java Main
, I'd have to type java Main.java
. I thought that it was due to a recent build for the JDK (v14.02), so I let that one pass.Error: Could not find or load main class com.pluralsight.organized.Main. Caused by: java.lang.ClassNotFoundException: com.pluralsight.organized.Main
.The folder structure should be:
D:/SomePath/com/example/Main.class
Then you need to be at D:/SomePath/
to execute java com.example.Main
.
Alternatively, you could be anywhere else and execute java -cp D:/SomePath com.example.Main
.