posted 8 years ago
So i m basically using Linux as OS and terminal to compile and run project. I also have eclipse installed just in case to understand. So i was just trying a simple inheritance programs. Below is the code:
Whenever i execute above program through terminal, I get following error:
However, whenever i execute the above programs in eclipse i get the correct output. I m confused as to why am i not getting the output from terminal. All the package and class i have included are correct. Please help me understand why JVM shows error