compile and run Java with Command Prompt
#java #compile #run #command #prompt
----------------------------------------
1. Make sure you have a Java JDK installed (we did this in lesson #1)
2. (optional) use a text editor and save a file as .java
3. Open Command Prompt (Windows) or Terminal (Mac) on your computer
4. set path=C:\Program Files\Java\jdk-14.0.1\bin (where JDK is located)
5. cd C:\Users\Myname\Desktop (or wherever you java file is)
6. javac HelloWorld.java (to compile a .java file to .class file)
7. java HelloWorld (to run a .class file, it's portable)
On this page of the site you can watch the video online Java compile and run with command prompt 💽 with a duration of hours minute second in good quality, which was uploaded by the user Bro Code 02 July 2020, share the link with friends and acquaintances, this video has already been watched 17,938 times on youtube and it was liked by 653 viewers. Enjoy your viewing!