Playback starts YouTube’s embedded player (privacy-enhanced mode).
How to execute java program using Command prompt
ChannelJava DukesDescription 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
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
- Category
- People & Blogs
- Duration
- 7:09
- Published
- November 7, 2014
- Views
- 490,389
- Likes
- 2,526
Tags
Share
This tutorial in other languages
- FRComment exécuter le programme Java en utilisant l'invite de commande
- ESLa forma de ejecutar el programa Java utilizando el símbolo del sistema
- PTComo executar o programa java usando o prompt de comando
- ITCome eseguire il programma Java utilizzando Prompt dei comandi
- DEWie Java-Programm mit Eingabeaufforderung auszuführen
- NLHoe kan java programma uit te voeren met behulp van Command prompt
- RUКак выполнить программу Java с помощью командной строки
- PLJak wykonać program java przy użyciu wiersz polecenia
- JAコマンドプロンプトを使用してJavaプログラムを実行する方法
- ARكيفية تنفيذ برنامج جافا باستخدام موجه الأوامر
- HIजावा कार्यक्रम पर अमल कैसे कमान शीघ्र उपयोग करते हुए
- IDCara menjalankan program java menggunakan Command prompt