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

  Рет қаралды 406,607

Coding with John

Coding with John

Күн бұрын

Пікірлер: 251
@Ecstasy_Android_Gamer
@Ecstasy_Android_Gamer 2 жыл бұрын
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.
@nird4897
@nird4897 3 жыл бұрын
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!
@nird4897
@nird4897 3 жыл бұрын
And in addition, I searched for the same question few weeks ago here on KZbin and no one was able to help me like you did. Definitely worth subscribing! 😁
@ironman......
@ironman...... Жыл бұрын
Yes absolutely this vedio helped me a lot... Thank you👍
@dikshyakafle5530
@dikshyakafle5530 Жыл бұрын
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.
@aramesmaeili4099
@aramesmaeili4099 Жыл бұрын
I am so thankful for this. This saved my life. As a beginner, I was losing my mind
@youinagacha8340
@youinagacha8340 Жыл бұрын
Thank you so much my school couldn't teach me that in a month you just did it in a minute
@Ololade_dgr8
@Ololade_dgr8 Жыл бұрын
So relatable 😂❤
@soul_conscious
@soul_conscious Жыл бұрын
So simple and to the point without any unnecessary hassles! Thank you!
@franz2027
@franz2027 3 жыл бұрын
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?"
@Billkarr98
@Billkarr98 3 ай бұрын
You are the best man I been struggling for the past days to solve this proble and you just taught me it in just five minutes I really appreciate man
@SagarSharma-pb6xh
@SagarSharma-pb6xh 8 ай бұрын
I attend my college lectures of java but didn't understand anything but by watching your single video I got know the basics of java thank you sir ❤
@sforsuraj7255
@sforsuraj7255 2 жыл бұрын
I learnt a lot from your videos in past 24 hrs. Thank you sir for sharing such videos.
@battleforge6177
@battleforge6177 Жыл бұрын
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
@clairejing1958
@clairejing1958 Жыл бұрын
Thank you so much John, I've been searching how to do for so long.
@spudbencer7179
@spudbencer7179 10 ай бұрын
Now try with packages. 1 hour of googling and the java command still doesn't find my class declaration, in the same exact folder
@GlenyMorais
@GlenyMorais 3 ай бұрын
Same situation here😢
@RajkumarBokkisam
@RajkumarBokkisam 3 ай бұрын
Use chatgt
@olgasoteroescobar5325
@olgasoteroescobar5325 2 ай бұрын
thank soo much i was crying because of java but now I feel good
@Beeetle_Juice
@Beeetle_Juice Жыл бұрын
The best explanation I've ever watched !
@afifkhaja
@afifkhaja Жыл бұрын
Nice tutorial although I have an src folder with multiple packages and I need the classes from each package to be compiled into the target folder and need to run the driver class from the target folder. Is there a video on this? Thanks
@saanvivlog7517
@saanvivlog7517 17 күн бұрын
Bro you are a life saver today time is 1:06 pm I am awake to find how to run Java file
@Hakim_fadhli
@Hakim_fadhli Жыл бұрын
i try many other videos without result this video is very helpfull for beginners like me, thank you
@mishmish.
@mishmish. 3 күн бұрын
Finally! found the right video!!
@jesusdiaz5008
@jesusdiaz5008 Жыл бұрын
Thanks big dog, I appreciate content creators such as yourself. You dove straight into the point with great information. Much love ❤
@Lyynnx-025
@Lyynnx-025 9 ай бұрын
I'm here because my OOP exam requires us to do our hands-on exam on notepad. Lezz goooo
@lisatorres2234
@lisatorres2234 Жыл бұрын
You just taught me something I needed for class. Thank you so much.
@Swagboij
@Swagboij 5 ай бұрын
Amazing clear and concise tutorial man thank you
@Julia-nk2gj
@Julia-nk2gj Жыл бұрын
Thank you for such a simple and straightforward explanation.
@prokopii18
@prokopii18 3 жыл бұрын
You are a star, amazing explanation and you make amazing videos!
@srisaikunderu1429
@srisaikunderu1429 Жыл бұрын
Thank you so much. I felt so frustrated for doing this Java file process. You really helped me sir.
@Fits124
@Fits124 6 ай бұрын
What an amazing video, thank you so much John
@Swathi12383
@Swathi12383 7 ай бұрын
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...❤
@niksatan
@niksatan Жыл бұрын
So simple, but very needed, thx
@suknayateluguworld1012
@suknayateluguworld1012 11 ай бұрын
I am new to learn coding recently start learn to do coding in java there vast syllabus there is no time to cover all the topics right now to me i want to do coding in java please share some tricks and tips and shortcut to able to do java coding and do tasks u r ans and support is very much need I am impressed by u r knowledge I hope u solve my problem dear❤
@arnavchauhan9637
@arnavchauhan9637 Жыл бұрын
Thanks sir for providing the wonderful commands previously i had to run task build java then click on run button it was too time consuming but its so simple.....
@swapnilbawiskar3617
@swapnilbawiskar3617 Жыл бұрын
Thank you so muchh brother, It worked after watching a lot of videos...
@murewaajala445
@murewaajala445 Жыл бұрын
Could not find or load main class helloworld Caused by: java.lang.ClassNotFoundException: helloworld mine is showing this error please what can i do
@Saimasplace
@Saimasplace 2 ай бұрын
Thanks John!!
@sphurtikulkarni9781
@sphurtikulkarni9781 6 ай бұрын
Thank you so much for such a detailed video and great explanation!
@nehalkalambe9896
@nehalkalambe9896 Жыл бұрын
thank you ! I was struggling for this it really helped me
@ulongo123
@ulongo123 7 ай бұрын
Thank you, big fan out here!!
@JJJJ-gl2uf
@JJJJ-gl2uf 2 жыл бұрын
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.
@mulexawikjo8207
@mulexawikjo8207 Жыл бұрын
thanks for explaining in detail
@Wise-Child-2005
@Wise-Child-2005 5 ай бұрын
In Linux we use gedit to open the file from terminal, what is it's windows equivalent?
@Shubham-hk3il
@Shubham-hk3il 2 ай бұрын
😊John sir you are GOAT 😊 Love You So Much❤❤❤ Keep it up🎉🎉🎉
@CHANDANAR-d1b
@CHANDANAR-d1b Жыл бұрын
John, you are the best and thank you so much it really worked
@CindyAudyaPriecillia
@CindyAudyaPriecillia 7 ай бұрын
thank youuu so muchhhh this help me to do my assignment, at first i'm very confuse but i found this video and finally it work yayyy✨
@rayannphilip5749
@rayannphilip5749 8 ай бұрын
Thank you Sir. I am already practicing it after a short while 😊
@electronoob7341
@electronoob7341 3 жыл бұрын
lol! First thing our old-school Java Profs at Uni taught us, they insisted we only use notepad++ and compile & run our code just like this in cmd, no IDE's allowed. Looking back now I must say this is a great way to learn by forcing you to remember and know how to do thing IDE's usually do fòr us these days.
@happygrace8065
@happygrace8065 Жыл бұрын
Maaan!!.. you are the best
@davidsalamanca9581
@davidsalamanca9581 Жыл бұрын
Best Java tutorial, i was stoped cause i always use javac and dont get any output :( im trying to study java alone haha im from python code, same way, at cmd, and there is a special way to do it, here at the same but diferent way you need to compile and then run it, thanks you for this tutorial, now let the java training start !!
@PedrovoriskAB
@PedrovoriskAB 3 жыл бұрын
Amazing video John.. thank you !!!
@matildasgalaxy3204
@matildasgalaxy3204 7 ай бұрын
Thank you so much!!!! Headache gone 😅
@o0.jc.0o26
@o0.jc.0o26 2 жыл бұрын
Thanks for this video.. What if I have multiple classes for one program in separated files and one of them has the main method? How would I just do that for running the program? Thx Edit: i just came up with the solution. The question is that the .java files are included in a package, so in order to run the program in cmd, you must be located in the father folder of the package, and then run it typing java packageName.Main where Main is the .java file containing the main method.
@komalsingh-b2l
@komalsingh-b2l Жыл бұрын
Thanku so much sir . Your video is really helpful for me you can simply teach us how I can use cmd. Once again thanku so much ❤❤❤❤❤
@adrian_tr
@adrian_tr Жыл бұрын
Thanks. Extremly good explained
@jasminecarol3729
@jasminecarol3729 2 жыл бұрын
You just saved my life thank you
@Atojushorts
@Atojushorts 2 жыл бұрын
Thanks.This really helped me out
@AmandaArcanjo-e3k
@AmandaArcanjo-e3k 5 ай бұрын
Awesome classes has always. Also, Binding of Isaac! YES
@priyadharshini.k-ey8fj
@priyadharshini.k-ey8fj 2 ай бұрын
Thankyou sooooooo much❤❤❤❤❤❤❤❤❤❤❤.....You saved my day🔥
@Gust52
@Gust52 Жыл бұрын
Can you show us if there's a way to view the bytecode and machine code of our Java Program as well? Thanks!
@AnkitaBagulBorhade
@AnkitaBagulBorhade 10 күн бұрын
Helpful vedio..thanks a lot
@leeamraa
@leeamraa 2 жыл бұрын
I would've added command line arguments to the tutorial as this is the best way to demo them!
@vishakhasoni_07
@vishakhasoni_07 Жыл бұрын
Thankyou thankyou thankyou thankyou thankyou thankyou so very much🙂 This has really been very helpful:)
@Jan_Jan_
@Jan_Jan_ 2 жыл бұрын
Thank you! This was very helpful👍
@surajwankhade2082
@surajwankhade2082 Жыл бұрын
Simply explanation
@reekdas9219
@reekdas9219 Жыл бұрын
thanks! that was really helpful!
@fadouamadane
@fadouamadane Жыл бұрын
amazing explanation thank you .
@simple.simple210
@simple.simple210 5 ай бұрын
THANKS TO YOU SIR MY CODE FINAALY RUN THANK YOU SO MUCH!
@ThinakaranSivanPandian
@ThinakaranSivanPandian Жыл бұрын
Thank you john
@sriyassuperblife1960
@sriyassuperblife1960 3 ай бұрын
Thank you sir!
@Biographyworld-o7v
@Biographyworld-o7v 7 ай бұрын
Very Nice teach 👍🏻
@ArmyPurpleYou_
@ArmyPurpleYou_ 2 жыл бұрын
Ohhh myy godd. It finally worked. Thankyou!!
@Jorgerodriguez-cf5vy
@Jorgerodriguez-cf5vy Жыл бұрын
Bro, you are awesome.
@anas8296
@anas8296 Жыл бұрын
Thanks for you effort, Does the class name and the java file name have to be the same?
@poovarasanb9210
@poovarasanb9210 2 жыл бұрын
Amazing tutorial
@lucianoprokilla
@lucianoprokilla 8 ай бұрын
John, I couldn't help but notice your barebones dash DOES include The Binding of Isaac. Great game choice!
@debashisghosh3222
@debashisghosh3222 Жыл бұрын
Great video 👏
@Garrison86
@Garrison86 2 жыл бұрын
Amazing!! Thank you for your material, it helps big time.
@Livebio1786
@Livebio1786 8 ай бұрын
Thank you sooo much for helping out
@felixbernard4990
@felixbernard4990 3 ай бұрын
thanks a lot man!
@AmitBiswas0142
@AmitBiswas0142 9 ай бұрын
Thanks it's working!!
@priavteprospaces3943
@priavteprospaces3943 11 ай бұрын
Thanks help out heaps I sort forgot how change folder in cmd
@ericchungu8313
@ericchungu8313 3 жыл бұрын
nice work man
@pigitertin6830
@pigitertin6830 Жыл бұрын
Thank you Sir.
@OmEN1443-j4h
@OmEN1443-j4h Жыл бұрын
thank you sir , It helped alot
@Ksyusha1
@Ksyusha1 3 жыл бұрын
Loved it !
@hiteshkalelkar
@hiteshkalelkar Жыл бұрын
Thankyou sir this was very helpfull
@aljei9146
@aljei9146 2 жыл бұрын
Hi, John. Thank you for this tutorial, really helped me a lot. Question though, what if I have multiple classes?? How do I compile and run it in the cmd? Or is it even possible?
@tiagomuniz1043
@tiagomuniz1043 Жыл бұрын
I have the same question...
@arnavchaudhary4785
@arnavchaudhary4785 Жыл бұрын
Thanks my friend
@frightifystories
@frightifystories 7 ай бұрын
After the { how do you click enter that starts on the 2nd line and not in the first line below?
@kobey3044
@kobey3044 Жыл бұрын
hi I am an idiot. I installed JDK-20 (C:\Program Files\Java) I tried many times and I cannot see the version when I type (java ~version) on dos cmd. please help me. I need to learn programming.. i am trying to pass my degree. 1:07 I am stuck here.
@CodingWithJohn
@CodingWithJohn Жыл бұрын
Just to make sure, it's "java -version", not "Java ~version"
@bipashabanerjee2432
@bipashabanerjee2432 6 ай бұрын
Thank you sir❤
@Sujalchaudhary004
@Sujalchaudhary004 Жыл бұрын
Why in my commant prompt it is showing the system cannot find the path specified ❓❓❓❓❓❓
@1shita
@1shita Жыл бұрын
How to set code file open with notepad like that ?....in my pc showing only ...(open with VS code)
@RonCorbyAlbero
@RonCorbyAlbero 2 ай бұрын
Hello i already downlaod the JDK but still error about "javac not found" please help me
@benparker3380
@benparker3380 16 күн бұрын
Yeah i have the same problem
@leodachad260
@leodachad260 Жыл бұрын
Hey John, on my side I can't find my file when I enter cd documents and dir. What should I do?
@payal-Art
@payal-Art Жыл бұрын
Thanks a lot 🎉
@EnglishMediumMathsOL
@EnglishMediumMathsOL Жыл бұрын
Informative
@donnahcolonia25
@donnahcolonia25 2 жыл бұрын
THANK YOU SO MUCH!!!!!
@jop4846
@jop4846 Жыл бұрын
amazing. i feel like i can create any app soon.😅
@glorielynasorto2113
@glorielynasorto2113 3 жыл бұрын
thankyou for this video.
@11d7th
@11d7th Жыл бұрын
well, dang! thanks you very much!
@Themask_27
@Themask_27 2 жыл бұрын
Hey I got an error on javac ..that is javac is not recognised then what I want to do
@swemadeeasy1484
@swemadeeasy1484 2 жыл бұрын
do you have JDK installed on your system? if so, do you have the right ENV variables? like JAVA_HOME?
How to Run Java Program in Command Prompt CMD  in Windows 11
11:57
ProgrammingKnowledge2
Рет қаралды 109 М.
Java's Creators Rejected Multiple Inheritance - Here's Why
13:14
Coding with John
Рет қаралды 70 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Creating, Compiling, and Executing a Java Program
10:25
Neso Academy
Рет қаралды 278 М.
Using the DISM Command Prompt Tool to Repair Windows
7:00
Ask Leo!
Рет қаралды 27 М.
Array vs. ArrayList in Java Tutorial - What's The Difference?
17:36
Coding with John
Рет қаралды 565 М.
how to compile and execute java program
3:59
Techlearners By Neeraj Saxena
Рет қаралды 1,1 МЛН
How to Run Java Program in Command Prompt (CMD)  in Windows 10
8:55
ProgrammingKnowledge2
Рет қаралды 184 М.
How do computers read code?
12:01
Frame of Essence
Рет қаралды 3,1 МЛН
How To Study Programming The Lazy Way
11:15
The Coding Sloth
Рет қаралды 681 М.
Vectors in Java: The 1 Situation You Might Want To Use Them
16:13
Coding with John
Рет қаралды 86 М.
Git Tutorial For Dummies
19:25
Nick White
Рет қаралды 1,2 МЛН
12 VS Code Extensions to INCREASE Productivity 2024
27:13
Devression
Рет қаралды 833 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.