How to Run Java Programs With Command Prompt (cmd) and Notepad in Windows

preview_player
Показать описание
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!

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

📕 One of my favorite programming books, Clean Code by Robert Martin

🎧 Or get the audio version of Clean Code for FREE here with an Audible free trial

🖥️Standing desk brand I use for recording (get a code for $30 off through this link!)

📹Phone I use for recording:

🎙️Microphone I use (classy, I know):

Donate with PayPal (Thank you so much!)

☕Complete Java course:

Рекомендации по теме
Комментарии
Автор

John, you're simply the best. All the tutorials from my university never seemed to work for me until I watched your video following all your detailed steps. Thanks for making me run my first java program and making it feel so simple.

Ecstasy_Android_Gamer
Автор

Thank you John, you're the best. I had an assignment to run a program in command prompt and I continuously got errors. Finally, I understood it.

dikshyakafle
Автор

Great video! It worked! My programming professor told me to try using cmd to run our java project, and I kept on getting errors until I watched your video. Thanks a lot!

nird
Автор

So simple and to the point without any unnecessary hassles! Thank you!

soul_conscious
Автор

Thank you so much John, I've been searching how to do for so long.

clairejing
Автор

Great video. I just started a Java course on Moodle and your explanation here helped a lot. Will be following you in future. Many thanks.

JJJJ-gluf
Автор

Hi John, thank you very much for your videos.

You have the best Java learning channel that I have come across. I've been using your channel to review my Java knowledge after not coding in java for 3+ years and preparing for a Fang interview. I'm also planning to do a talk on it and referencing anybody who wants to learn Java to you.

My request is: "Will you please do a video on Lambdas?"

franz
Автор

I am so thankful for this. This saved my life. As a beginner, I was losing my mind

aramesmaeili
Автор

Thank you very much sir, amazing video, helped me a biology student who once had no knowledge on computer science, c, java and now I am praised by my java teacher during lab sessions. Once again
Thank you a lot

battleforge
Автор

I learnt a lot from your videos in past 24 hrs.
Thank you sir for sharing such videos.

sforsuraj
Автор

Thanks big dog, I appreciate content creators such as yourself. You dove straight into the point with great information. Much love ❤

jesusdiaz
Автор

Thank you for such a simple and straightforward explanation.

Julia-nkgj
Автор

You just taught me something I needed for class. Thank you so much.

lisatorres
Автор

Thank u so much 🙏🙏 I watched so many videos but didn't get it to run Java in CMD...ur video helped me a lot...❤

Swathi
Автор

thank you ! I was struggling for this it really helped me

nehalkalambe
Автор

What an amazing video, thank you so much John

Fits
Автор

Thank you so much. I felt so frustrated for doing this Java file process. You really helped me sir.

srisaikunderu
Автор

You are a star, amazing explanation and you make amazing videos!

prokopii
Автор

Amazing clear and concise tutorial man thank you

Swagboij
Автор

Amazing!! Thank you for your material, it helps big time.

Garrison