After the the demo project is compiled, there are many .class file in the out>production>testPrj>apidemo. Basically, each file will have one .class file
I expect to enter the console:
java apidemo.class
but it doesn't work.
I tried "java apidemo.class". The error msg is "Error: Could not find or load main class apidemo".
I also read this post. It is not working for my situation. My compile is success, and it can be run from Intellj, but I don't know how to run it from console. How do I run a compiled java project from console?