How to Compile and Run Java Programs using Command Prompt

Veröffentlicht am: 20 Dezember 2016
auf dem Kanal: thecoderworld
7,442
36

Learn More: https://www.thecoderworld.com/run-jav...

In this video, we will discuss How to Compile and Run Java Programs using Command Prompt. Before this, you must install Java JDK on your Windows 10 computer.

To check whether you have Java installed or not open “Command Prompt” and types the following commands:

java -version

javac

You’ll get your Java, build and version number.

Now let’s see how you can run Java programs using Command prompt.

Step 1: Navigate to the directory where you have saved your Java program. You can do it by using this command “cd dirextory_name“

Step 2: Now using “javac file_name.java“, this command your create a java class file.

Step 3: To run this java class file use this command “java file_name“.

These ways you can run Java programs using Windows Command Prompt.

Official Websites 👇
Blog: https://www.thecoderworld.com/

Share, Support, Subscribe!!!
Subscribe: https://goo.gl/jDMJJS
Youtube:    / @thecoderworld  
Twitter:   / thecoderworld  
Facebook:   / thecoderworld  
Instagram:   / thecoderworld  


Auf dieser Seite können Sie das Online-Video How to Compile and Run Java Programs using Command Prompt mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer thecoderworld 20 Dezember 2016 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 7,442 Mal angesehen und es wurde von 36 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!