How to Run Java Programs With Command Prompt (cmd) and Notepad in Windows
Coding with John Coding with John
358K subscribers
363,814 views
6.8K

 Published On Nov 15, 2021

How do you compile and execute your Java programs from the command prompt (cmd) in Windows? Also, how you can you write your programs just using Notepad?

We'll go over how to write a Java program in Notepad, then how you can compile and run that program directly from the command prompt (cmd) in Windows.

The video shows Windows 11, but the same process works for Windows 10 or other version of Windows.

This is a great beginner's Java video if you're learning how to execute your programs, or if you're used to using an IDE like Eclipse, and want to learn how to use the command prompt (cmd) instead.

Learn or improve your Java by watching it being coded live!

Hi, I'm John! I'm a Lead Java Software Engineer and I've been in the programming industry for more than a decade. I love sharing what I've learned over the years in a way that's understandable for all levels of Java learners.

Let me know what else you'd like to see!

JDK download: https://www.oracle.com/java/technolog...

Links to any stuff in this description are affiliate links, so if you buy a product through those links I may earn a small commission.

📕 THE best book to learn Java, Effective Java by Joshua Bloch
https://amzn.to/36AfdUu

📕 One of my favorite programming books, Clean Code by Robert Martin
https://amzn.to/3GTPVhf

🎧 Or get the audio version of Clean Code for FREE here with an Audible free trial
http://www.audibletrial.com/johnclean...



🖥️Standing desk brand I use for recording (get a code for $30 off through this link!)
https://bit.ly/3QPNGko

📹Phone I use for recording:
https://amzn.to/3HepYJu

🎙️Microphone I use (classy, I know):
https://amzn.to/3AYGdbz

Donate with PayPal (Thank you so much!)
https://www.paypal.com/donate/?hosted...


☕Complete Java course:
https://codingwithjohn.thinkific.com/...

https://codingwithjohn.com

show more

Share/Embed