Java compile and run with command prompt 💽

Veröffentlicht am: 02 Juli 2020
auf dem Kanal: Bro Code
17,938
653

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)


Auf dieser Seite können Sie das Online-Video Java compile and run with command prompt 💽 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Bro Code 02 Juli 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 17,938 Mal angesehen und es wurde von 653 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!