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

Поділитися
Вставка
  • Опубліковано 4 жов 2024

КОМЕНТАРІ • 234

  • @Ecstasy_Android_Gamer
    @Ecstasy_Android_Gamer 2 роки тому +30

    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 2 роки тому +45

    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 2 роки тому +1

      And in addition, I searched for the same question few weeks ago here on UA-cam 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 Рік тому +4

    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.

  • @Billkarr98
    @Billkarr98 16 днів тому

    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

  • @aramesmaeili4099
    @aramesmaeili4099 Рік тому +2

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

  • @youinagacha8340
    @youinagacha8340 Рік тому +2

    Thank you so much my school couldn't teach me that in a month you just did it in a minute

  • @SagarSharma-pb6xh
    @SagarSharma-pb6xh 5 місяців тому

    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 ❤

  • @soul_conscious
    @soul_conscious Рік тому +3

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

  • @olgasoteroescobar5325
    @olgasoteroescobar5325 3 дні тому

    thank soo much i was crying because of java but now I feel good

  • @Swathi12383
    @Swathi12383 4 місяці тому

    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...❤

  • @jesusdiaz5008
    @jesusdiaz5008 Рік тому +4

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

  • @sforsuraj7255
    @sforsuraj7255 2 роки тому +1

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

  • @clairejing1958
    @clairejing1958 Рік тому

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

  • @Swagboij
    @Swagboij 3 місяці тому

    Amazing clear and concise tutorial man thank you

  • @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

  • @Hakim_fadhli
    @Hakim_fadhli Рік тому

    i try many other videos without result this video is very helpfull for beginners like me, thank you

  • @franz2027
    @franz2027 2 роки тому +7

    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?"

  • @Julia-nk2gj
    @Julia-nk2gj Рік тому

    Thank you for such a simple and straightforward explanation.

  • @Beeetle_Juice
    @Beeetle_Juice Рік тому

    The best explanation I've ever watched !

  • @arnavchauhan9637
    @arnavchauhan9637 9 місяців тому

    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.....

  • @lisatorres2234
    @lisatorres2234 Рік тому

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

  • @sphurtikulkarni9781
    @sphurtikulkarni9781 3 місяці тому

    Thank you so much for such a detailed video and great explanation!

  • @srisaikunderu1429
    @srisaikunderu1429 Рік тому

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

  • @Fits124
    @Fits124 3 місяці тому

    What an amazing video, thank you so much John

  • @rayannphilip5749
    @rayannphilip5749 5 місяців тому

    Thank you Sir. I am already practicing it after a short while 😊

  • @CindyAudyaPriecillia
    @CindyAudyaPriecillia 4 місяці тому

    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✨

  • @swapnilbawiskar3617
    @swapnilbawiskar3617 Рік тому

    Thank you so muchh brother, It worked after watching a lot of videos...

  • @prokopii18
    @prokopii18 2 роки тому +2

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

  • @nehalkalambe9896
    @nehalkalambe9896 Рік тому

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

  • @niksatan
    @niksatan Рік тому

    So simple, but very needed, thx

  • @CHANDANAR-d1b
    @CHANDANAR-d1b Рік тому

    John, you are the best and thank you so much it really worked

  • @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.

  • @simple.simple210
    @simple.simple210 3 місяці тому

    THANKS TO YOU SIR MY CODE FINAALY RUN THANK YOU SO MUCH!

  • @mulexawikjo8207
    @mulexawikjo8207 Рік тому

    thanks for explaining in detail

  • @suknayateluguworld1012
    @suknayateluguworld1012 8 місяців тому

    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❤

  • @spudbencer7179
    @spudbencer7179 8 місяців тому +17

    Now try with packages. 1 hour of googling and the java command still doesn't find my class declaration, in the same exact folder

  • @Lyynnx-025
    @Lyynnx-025 6 місяців тому +1

    I'm here because my OOP exam requires us to do our hands-on exam on notepad. Lezz goooo

  • @komalsingh-b2l
    @komalsingh-b2l 9 місяців тому

    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 ❤❤❤❤❤

  • @AmandaArcanjo-e3k
    @AmandaArcanjo-e3k 2 місяці тому

    Awesome classes has always. Also, Binding of Isaac! YES

  • @Garrison86
    @Garrison86 2 роки тому

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

  • @ulongo123
    @ulongo123 5 місяців тому

    Thank you, big fan out here!!

  • @leeamraa
    @leeamraa 2 роки тому

    I would've added command line arguments to the tutorial as this is the best way to demo them!

  • @adrian_tr
    @adrian_tr 10 місяців тому

    Thanks. Extremly good explained

  • @Jan_Jan_
    @Jan_Jan_ 2 роки тому

    Thank you! This was very helpful👍

  • @Atojushorts
    @Atojushorts Рік тому

    Thanks.This really helped me out

  • @jasminecarol3729
    @jasminecarol3729 2 роки тому

    You just saved my life thank you

  • @pedroaboffa
    @pedroaboffa 2 роки тому

    Amazing video John.. thank you !!!

  • @matildasgalaxy3204
    @matildasgalaxy3204 4 місяці тому

    Thank you so much!!!! Headache gone 😅

  • @vishakhasoni_07
    @vishakhasoni_07 Рік тому

    Thankyou thankyou thankyou thankyou thankyou thankyou so very much🙂 This has really been very helpful:)

  • @Livebio1786
    @Livebio1786 5 місяців тому

    Thank you sooo much for helping out

  • @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 !!

  • @ArmyPurpleYou_
    @ArmyPurpleYou_ Рік тому

    Ohhh myy godd. It finally worked. Thankyou!!

  • @reekdas9219
    @reekdas9219 Рік тому

    thanks! that was really helpful!

  • @sriyassuperblife1960
    @sriyassuperblife1960 Місяць тому

    Thank you sir!

  • @Mythri333
    @Mythri333 2 місяці тому

    Thank you so much 😊

  • @OmEN1443-j4h
    @OmEN1443-j4h Рік тому

    thank you sir , It helped alot

  • @electronoob7341
    @electronoob7341 2 роки тому

    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.

  • @Biographyworld-o7v
    @Biographyworld-o7v 4 місяці тому

    Very Nice teach 👍🏻

  • @hiteshkalelkar
    @hiteshkalelkar 9 місяців тому

    Thankyou sir this was very helpfull

  • @felixbernard4990
    @felixbernard4990 23 дні тому

    thanks a lot man!

  • @afifkhaja
    @afifkhaja Рік тому +2

    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

  • @priavteprospaces3943
    @priavteprospaces3943 8 місяців тому

    Thanks help out heaps I sort forgot how change folder in cmd

  • @happygrace8065
    @happygrace8065 Рік тому

    Maaan!!.. you are the best

  • @lucianoprokilla
    @lucianoprokilla 5 місяців тому

    John, I couldn't help but notice your barebones dash DOES include The Binding of Isaac. Great game choice!

  • @avoaveccienna
    @avoaveccienna 11 місяців тому

    John the besttt

  • @bipashabanerjee2432
    @bipashabanerjee2432 4 місяці тому

    Thank you sir❤

  • @AmitBiswas0142
    @AmitBiswas0142 7 місяців тому

    Thanks it's working!!

  • @surajwankhade2082
    @surajwankhade2082 Рік тому

    Simply explanation

  • @poovarasanb9210
    @poovarasanb9210 2 роки тому

    Amazing tutorial

  • @Kakashi-rx5yc
    @Kakashi-rx5yc 8 місяців тому +2

    I am getting this error: Could not find or load main class Demo
    Caused by: java.lang.ClassNotFoundException: Demo

  • @Wise-Child-2005
    @Wise-Child-2005 3 місяці тому +1

    In Linux we use gedit to open the file from terminal, what is it's windows equivalent?

  • @Jorgerodriguez-cf5vy
    @Jorgerodriguez-cf5vy 10 місяців тому

    Bro, you are awesome.

  • @rayyan-n9k
    @rayyan-n9k 9 місяців тому

    from the background bro looks like musician

  • @11d7th
    @11d7th Рік тому

    well, dang!
    thanks you very much!

  • @o0.jc.0o26
    @o0.jc.0o26 2 роки тому +1

    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.

  • @My_Music001
    @My_Music001 2 місяці тому

    Thank you . Sir

  • @glorielynasorto2113
    @glorielynasorto2113 2 роки тому

    thankyou for this video.

  • @fadouamadane
    @fadouamadane 10 місяців тому

    amazing explanation thank you .

  • @ThinakaranSivanPandian
    @ThinakaranSivanPandian Рік тому

    Thank you john

  • @jop4846
    @jop4846 Рік тому

    amazing. i feel like i can create any app soon.😅

  • @therangolicanvas4127
    @therangolicanvas4127 2 роки тому

    Very informative thnk u

  • @pigitertin6830
    @pigitertin6830 Рік тому

    Thank you Sir.

  • @debashisghosh3222
    @debashisghosh3222 Рік тому

    Great video 👏

  • @Ksyusha1
    @Ksyusha1 2 роки тому

    Loved it !

  • @EnglishMediumMathsOL
    @EnglishMediumMathsOL 10 місяців тому

    Informative

  • @MICHAELJOSEPH-x9f
    @MICHAELJOSEPH-x9f Рік тому

    am actually intrested in creating an app using java language

  • @murewaajala445
    @murewaajala445 Рік тому +2

    Could not find or load main class helloworld
    Caused by: java.lang.ClassNotFoundException: helloworld
    mine is showing this error please what can i do

  • @ericchungu8313
    @ericchungu8313 2 роки тому

    nice work man

  • @coderopy
    @coderopy Рік тому

    Thanks very much 🥰

  • @abdaouihoucine
    @abdaouihoucine 7 місяців тому

    Thanks!

  • @NayeemKhan-csegoogle
    @NayeemKhan-csegoogle Місяць тому

    thanks sir
    I did it 😍

  • @arnavchaudhary4785
    @arnavchaudhary4785 Рік тому

    Thanks my friend

  • @Strawberry12352
    @Strawberry12352 Рік тому

    Thank you so much 🤍

  • @AHMED-ry2gy
    @AHMED-ry2gy 2 роки тому

    John can you please do some search algorithms and more sorting videos, thank you

  • @matiascuervo9941
    @matiascuervo9941 2 роки тому

    Awesome channel, could you do a video about stack and heap memory?

  • @donnahcolonia25
    @donnahcolonia25 2 роки тому

    THANK YOU SO MUCH!!!!!

  • @parjanyamakeryt528
    @parjanyamakeryt528 5 місяців тому

    Thnq sooooooo much sirrr

  • @aljei9146
    @aljei9146 Рік тому +1

    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?

  • @manelpuraprasanna7028
    @manelpuraprasanna7028 Рік тому

    thank you sir

  • @salmasaffir624
    @salmasaffir624 Рік тому

    شكرا 💙