java - cmd "Error: Could not find or load main class" error -


i've read through other questions , have tried googling solutions, couldn't find solution looking for.

this program compiles , runs on netbeans, complies on cmd. want running cmd.

cmd window

program.java file

i'm not java - starting out , uni project.

the program in package chess. move folder,

c:\users\nihir\documents\chess> cd ..\ c:\users\nihir\documents> java -cp . chess.program 

Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -