How do I run a Java program in PuTTY?

How do I run a Java program in PuTTY?
Answer
  1. Type cd into the PuTTY terminal, followed by the directory address that holds the Java source code you wish to compile.
  2. Type ls if you are using PuTTY to log in to a Unix-based machine, or dir if you are using PuTTY to log into a Windows PC. This lists the files in the current directory. …
  3. Type javac MySourceCodeFile.
 

Tìm kiếm

Back
Top