HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to execute java program using Command prompt

490,389 views November 7, 2014 7:09

Watch on YouTube
ChannelJava Dukes

Description from the creator

Java Dukes
youtube.com/user/JavaDukes

In this video you will get to learn, how you can execute a Java program using command prompt. We all are familiar with command prompt but for those who don not know about command prompt , it is a black window which is used to execute your command . By default it is present in all computers . In windows 7 and older versions you can open it by clicking on window icon on the leftmost corner of your window screen then type command prompt . its icon will appear click on that and it will appear.

IN WINDOWS 8 , To open command prompt click on the window icon and type command prompt . In this video you will learn few basic command used in command prompt like cd, md etc. In order to execute your java programs we type
javac and then file name with extension and to run a java program we type java and then the class name . the same will be followed here , after writing the java program , open command prompt
after that save your program in any drive. By default command prompt will use your system drive but you can easily change it .

For changing the drive in command prompt simply type the drive name followed by a colon. After this compile your java program by typing javac followed by your java file name . After compiling your java program you can run it by simply typing java followed by the class name.

Java Dukes--
youtube.com/user/JavaDukes

About this tutorial

Java Dukes published this 7:09 video tutorial on November 7, 2014. It has been watched 490,389 times on YouTube.

Channel
Java Dukes
Duration
7:09
Published
November 7, 2014
Views
490,389
Likes
2,526

Tags

Share

This tutorial in other languages