Winston Gutkowski wrote:
Zukias Trunchbull wrote:Hi, I have just finished writing a program in NetBeans & everything's works fine when I run it. But when I try to run from from command prompt in the classes directory it says it cannot find the main class. I am currently following a book on how to do it which doesn't seem to work for me. Any help would be greatly appreciated!
First: What have you tried? And what message are you getting (the exact message please).
Winston
Thanks for replying so fast and sorry I didn't elaborate enough.
My generated class files (from netbeans) are in C:\java\InputGraph\build\classes\inputgraph
So I set the path in command prompt using cd C:\java\InputGraph\build\classes\inputgraph
and then on the next line I try "java InputGraph.class", which is the main class.
I get: "Error: Could not find or load main class InputGraph.class"