command « class file « Java I/O Q&A

1. Run class file using cmd commands

How can I run a class file using a java program with cmd commands?

2. cannot find the class file when running the java command

hello, thanks for reading. I am an eclipse user and running files(classes) from the terminal was a bit forgotten to me. tried to play with my terminal but it gets me to a situation where I had no clue. I can do the java command 'javac'. it reads for a while and then suddenly you have a .class file in ...