How do I run java on Linux?

Vy Bùi

New member
How do I run java on Linux?
Answer
How to Run Java through Command-line
  1. $ javac -version. (Javac command-line tool is used for the compilation of java programs) …
  2. $ sudo apt install default-jdk. To verify the installation of javac, type:
  3. $ javac -version. Now, write a Java program in the text file and save it with . …
  4. $ javac testing.java. …
  5. $ java testing.
 

Tìm kiếm

Back
Top