Saptaparna Dhar wrote:Thank you for your assistance.
I have set the path as suggested and now I compile the program by simply typing javac <classname>.java
Mr. John, the output which I got by typing java in the command prompt is--
I have a related issue. I am getting the above message and I have entered the command:
Why does this screen appear in the windows command prompt and what can I do to run my program. I created a simple hello world program and used:
I got the output Hello world, so it must have executed fineactually the same thing is happening to my hello world program too. I do also have a jar file that I needed for jsch-0.1.48.jar in the same folder as the java and .class files. I'd Also like to mention that I ran this in eclipse and it works just fine. I've never used the command prompt to execute java before. Thank you!