i'm a java - novice and am trying to run the following code from docs.oracle: https://docs.oracle.com/javase/tutorial/displayCode.html?code=https://docs.oracle.com/javase/tutorial/uiswing/examples/layout/BoxLayoutDemoProject/src/layout/BoxLayoutDemo.java
I'm compiling through cmd, have latest jdk, "path" - variable contains both jdk/bin and jre/bin and the .java file compiles well or at least doesn't report an error and produces .class file, which I see in folder. When I try to run the class, however, I tend too get :
Error: Could not find or load main class layout.BoxLayoutDemo Caused by: java.lang.ClassNotFoundException: layout.BoxLayoutDemo
Suspects?