Compiling and Running Programs
1. | Open command prompt or shell |
2. | Change directories to directory where the .java file you want to compile is stored by typing cd. |
3. | To compile: javac myClass.java |
4. | To run: java myClass |
Get Java Garage now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.