How to execute java program using Command prompt

Share this & earn $10
Java Dukes
Published at : 14 Dec 2020
389166 views
1842
287

Java Dukes
https://www.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--
https://www.youtube.com/user/JavaDukes
Java (Programming Language)TutorialHow-to (Website Category)

PERFORMING AT A FESTIVAL IN 2020

PERFORMING AT A FESTIVAL IN 2020

Cardi B - Be Careful (Lyrics)

Cardi B - Be Careful (Lyrics)

Jesus and the Interpreter. A modern-day christian helps Jesus get started.

Jesus and the Interpreter. A modern-day christian helps Jesus get started.

ROBLOX PIGGY HARD MODE: FLOODED SCHOOL!!

ROBLOX PIGGY HARD MODE: FLOODED SCHOOL!!

Diplomacy Crash Course

Diplomacy Crash Course

Chiếc  Ly Thần Chứa Sức Mạnh Khủng Khiếp|Tóm Tắt Phim : The Mortal Instruments: City of Bones (2013)

Chiếc Ly Thần Chứa Sức Mạnh Khủng Khiếp|Tóm Tắt Phim : The Mortal Instruments: City of Bones (2013)

Muhammad Ali - The Earlier Days [HD] RIP Angelo Dundee

Muhammad Ali - The Earlier Days [HD] RIP Angelo Dundee

Top 20 Actors of the Last Decade

Top 20 Actors of the Last Decade

Using Intermediaries to do Business in Foreign Markets

Using Intermediaries to do Business in Foreign Markets

The Best Possible Ending - The Henry Stickmin Collection

The Best Possible Ending - The Henry Stickmin Collection

[Official Audio] Jimmy Brown - Let Me Know

[Official Audio] Jimmy Brown - Let Me Know

SKETCHBOOK TOUR - Dark and Weird (as always...)

SKETCHBOOK TOUR - Dark and Weird (as always...)

Issues of Human Development (Nature vs. Nurture,Continuity vs. Discontinuity & Stability vs. Change)

Issues of Human Development (Nature vs. Nurture,Continuity vs. Discontinuity & Stability vs. Change)

The city of my heart, MÁLAGA, Spain

The city of my heart, MÁLAGA, Spain

Handmade House TV # 16  "Alternative Housing Overload"

Handmade House TV # 16 "Alternative Housing Overload"

Zombie Army 4: Dead War – Collectible Guide: Alpine Blitz – All Locations (No Commentary)

Zombie Army 4: Dead War – Collectible Guide: Alpine Blitz – All Locations (No Commentary)

Future of Money Panel, MenaExpo2020, Dubai UAE

Future of Money Panel, MenaExpo2020, Dubai UAE

Queen & roar|| glmv

Queen & roar|| glmv

15 MIN HAPPY DANCE WORKOUT - burn calories and smile / No Equipment I Pamela Reif

15 MIN HAPPY DANCE WORKOUT - burn calories and smile / No Equipment I Pamela Reif

Why I Hire People In The Philippines

Why I Hire People In The Philippines

David Friedman on How to Privatize Everything

David Friedman on How to Privatize Everything

Age Galvanized Metal in Minutes!

Age Galvanized Metal in Minutes!

REYKO - Set You Free

REYKO - Set You Free

Top 10 Things Bridgerton Got Factually Right & Wrong

Top 10 Things Bridgerton Got Factually Right & Wrong

Virgo - Everything is about to DRASTICALLY CHANGE! - Quantum Tarotscope

Virgo - Everything is about to DRASTICALLY CHANGE! - Quantum Tarotscope

Learn How to Cover Your Duvet in Seconds!

Learn How to Cover Your Duvet in Seconds!

A Special Message From Chairwoman Ward

A Special Message From Chairwoman Ward

Who is? Level 114 Put them in order? Walkthrough Solution

Who is? Level 114 Put them in order? Walkthrough Solution

CHOPIN - Nocturne Op.9 No2 (60 min) Piano Classical Music Concentration Studying Reading Background

CHOPIN - Nocturne Op.9 No2 (60 min) Piano Classical Music Concentration Studying Reading Background

🎭🎰🔔Ingreso Minimo Vital. ¡¡¡ YO YA LO COBRO !!! y a ti ¡¡¡ NO TE LO HAN RESUELTO !!!  Te lo decimos.

🎭🎰🔔Ingreso Minimo Vital. ¡¡¡ YO YA LO COBRO !!! y a ti ¡¡¡ NO TE LO HAN RESUELTO !!! Te lo decimos.

Converting from Slope-Intercept form to Standard form.wmv

Converting from Slope-Intercept form to Standard form.wmv

What happens while neutral wire is disconnected in a single phase? How do you find out?

What happens while neutral wire is disconnected in a single phase? How do you find out?

Santino Le Saint - I Know (Official Video)

Santino Le Saint - I Know (Official Video)

143. What Leisure Batteries did I opt for?

143. What Leisure Batteries did I opt for?

Searching for ANTIQUE MALL DEALS | Shop with Me for Ebay | Reselling

Searching for ANTIQUE MALL DEALS | Shop with Me for Ebay | Reselling

Richard Explains The Principal That Revolutionised Mass Production | Richard Hammond's Big

Richard Explains The Principal That Revolutionised Mass Production | Richard Hammond's Big

Every other monitor is DEAD to me - LG CX OLED 48"

Every other monitor is DEAD to me - LG CX OLED 48"

pregnant spider that is barely moving to get his home

pregnant spider that is barely moving to get his home

Amazing Things Happen - by Alexander Amelines

Amazing Things Happen - by Alexander Amelines

17 Tricky Questions And Riddles To Sharpen Your Brain

17 Tricky Questions And Riddles To Sharpen Your Brain

Company performance at the Olivier Awards 2019 with Mastercard

Company performance at the Olivier Awards 2019 with Mastercard

The verb "TO BE" - Simple Present - Easy English Class

The verb "TO BE" - Simple Present - Easy English Class

Anthony Bourdain details hashish in Morocco (Parts Unknown)

Anthony Bourdain details hashish in Morocco (Parts Unknown)

it’s different, Emilee Estoya -Too Good (Lyrics) [7clouds Release]

it’s different, Emilee Estoya -Too Good (Lyrics) [7clouds Release]

Count Binface at the Independent: Policy Grilling

Count Binface at the Independent: Policy Grilling

How to Set Up Your Inflatable Windsup To Go Windsurfing

How to Set Up Your Inflatable Windsup To Go Windsurfing

Unite | Unlock Your Hero | Max Steel

Unite | Unlock Your Hero | Max Steel

If you want to know how to have victory over the battle in your mind, join us live!

If you want to know how to have victory over the battle in your mind, join us live!

Batman vs Superman vs Captain America vs Ironman vs Hulk vs Deadpool vs Spiderman vs Goku

Batman vs Superman vs Captain America vs Ironman vs Hulk vs Deadpool vs Spiderman vs Goku