how to compile and execute java program

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 มิ.ย. 2019
  • #techlearners #java #compile
    The tutorial is about, how to compile and execute java program. To write java program notepad is used as editor. To compile javac command is used on command line. To execute java program, on command prompt, java command is used.

ความคิดเห็น • 522

  • @pritha222
    @pritha222 2 ปีที่แล้ว +31

    thank u sir i have exam tomorrow and i rlly needed to understand this now i get it. god bless you !!

  • @ZRX_YT123
    @ZRX_YT123 2 ปีที่แล้ว +11

    Thanks for teaching everyone and also me. This vid will help me to try to work my future work that is my favorite game is Roblox. To work with the creator if the game with lots of devs.

  • @colbymathe1250
    @colbymathe1250 3 ปีที่แล้ว +25

    Thank you so much! This seriously helped me so much. You are a life saver!

  • @cuaresmapauliney.2701
    @cuaresmapauliney.2701 3 ปีที่แล้ว +15

    Thanks! for this tutorial now i know how to run my file.

  • @asta5583
    @asta5583 3 ปีที่แล้ว +6

    Thank you so much sir.. now i can execute the program very easily without any hindrance..this video helps me a lot

  • @kingjaynazareno7482
    @kingjaynazareno7482 2 ปีที่แล้ว

    This is so straight forward explanation. Thanks

  • @n.l.a8713
    @n.l.a8713 3 ปีที่แล้ว +3

    Ahh thanks sir. Already created a Java program but didn't know how to execute it. Thanks

  • @souravgazmer1977
    @souravgazmer1977 3 ปีที่แล้ว +3

    thank you very much sir!!
    i get to learn many programs..
    sir only i am cnofuse in happy no

  • @shivamchauhan200
    @shivamchauhan200 3 ปีที่แล้ว +5

    Sirrr u r great thanks for discussing this in a best way thanks a lot sir keep going nd I will always support u ...

  • @nishantgaur131
    @nishantgaur131 4 ปีที่แล้ว +2

    Thanks sir
    It's really helpful 😁

  • @ananyajagreti3346
    @ananyajagreti3346 2 ปีที่แล้ว +1

    Your explanation was awesome sir really understood all the concept that you taught thanks for sharing it

  • @aparnajadhav3661
    @aparnajadhav3661 2 ปีที่แล้ว +1

    Thank u so much sir ..for help me i executed first program in my life

  • @a2thegenius343
    @a2thegenius343 2 ปีที่แล้ว +1

    thank you very much sir, for this valuable information
    It helped me a lot in my practical exam.

  • @Asgaming-bl7qn
    @Asgaming-bl7qn 2 ปีที่แล้ว +1

    Thanks as tomorrow is my practical

  • @simonuchebrolu4353
    @simonuchebrolu4353 2 หลายเดือนก่อน

    Thankyou soo much anna for your explanation🎉

  • @anzilashanavas6066
    @anzilashanavas6066 2 ปีที่แล้ว +1

    Thank u very much, ur teaching help me a lot, u save my childrens life sir

  • @venkatavarshitha1778
    @venkatavarshitha1778 8 หลายเดือนก่อน

    Thank you so much.. you are the saviour 😍🙌

  • @ganeshchintala6668
    @ganeshchintala6668 2 ปีที่แล้ว +18

    Thank u so much 🤩 sir u helped me a lot I executed first program in my life

  • @programmer_gk
    @programmer_gk ปีที่แล้ว +1

    Ty 💯 much I'm also forgat how to select drive after see your vedios I'm able to freely run our java programm 🙏

  • @nehapatil2495
    @nehapatil2495 4 ปีที่แล้ว +6

    Thank you☺️

  • @mygmailhomepage2562
    @mygmailhomepage2562 3 ปีที่แล้ว +5

    Very understanding ,and when i try it , Its success 👍👍 Thanks Sir , for your tutorial .

    • @TechlearnersbyNeerajSaxena
      @TechlearnersbyNeerajSaxena  3 ปีที่แล้ว +1

      Thanq so much... U can also watch more java programs in my java programming tutorial playlist on my channel.

  • @merlinbuela1409
    @merlinbuela1409 3 ปีที่แล้ว +2

    Thanks a lot sir now i'm eagerly want to learn java

    • @TechlearnersbyNeerajSaxena
      @TechlearnersbyNeerajSaxena  3 ปีที่แล้ว +1

      Welcome. I have more than 75 videos on basic java for beginners.. You can watch all from my channel playlist... Happy learning

  • @malliswarigutti7372
    @malliswarigutti7372 3 ปีที่แล้ว +1

    Thnkq so much sir...this video more helpfull to beginners

  • @vsp2022
    @vsp2022 2 ปีที่แล้ว +2

    THANKS SIR....FOR VERY SIMPLE WAY DEMONSTRATION......

  • @vaibhavsinghania8368
    @vaibhavsinghania8368 3 ปีที่แล้ว +2

    Thank you sir! Really helped a lot.

  • @mounikaputta5131
    @mounikaputta5131 2 ปีที่แล้ว +1

    Superb explanation sir,thank you very much sur,

  • @meghanaj8399
    @meghanaj8399 2 ปีที่แล้ว +1

    Thanks a lot Sir 🙏🏻

  • @jenefagideon3306
    @jenefagideon3306 ปีที่แล้ว +1

    Tks sir tomorrow my exam you helped me a lot ☺️

  • @Axe_prashu
    @Axe_prashu 3 ปีที่แล้ว +1

    tq sir becouse i successfully excution the my first program

  • @charadreemurr5438
    @charadreemurr5438 2 ปีที่แล้ว

    ah yes, the indian man teaching me how to program.

  • @misbahmulla8796
    @misbahmulla8796 4 ปีที่แล้ว +1

    Thank you a lot sir succeed m y first program form your video god always bless you

  • @tanishqwaghmare961
    @tanishqwaghmare961 3 ปีที่แล้ว +1

    thanks sir bir fan shout out

  • @nabanitadutta6200
    @nabanitadutta6200 3 ปีที่แล้ว +22

    You're really awesome sir. Respect 🙌

  • @priyasharma-pi2oc
    @priyasharma-pi2oc 3 ปีที่แล้ว +1

    Thnq it's very helpful for us 🙏

  • @hilife6167
    @hilife6167 2 ปีที่แล้ว +1

    Thank you so much sir

  • @bhavyadait974
    @bhavyadait974 2 ปีที่แล้ว +1

    Thankyou so much sir. This has helped me so much.

  • @krishnagiri7170
    @krishnagiri7170 3 ปีที่แล้ว +1

    Thank you sir.

  • @manojm622
    @manojm622 2 ปีที่แล้ว +1

    Can we put any other topic which we have to write in system. Out. Print (??anything)

  • @arpita8499
    @arpita8499 3 ปีที่แล้ว +1

    Thank you sir! Really helped

  • @gemin_vo3851
    @gemin_vo3851 2 ปีที่แล้ว +1

    Understood
    so I just stand here

  • @princelucifer4951
    @princelucifer4951 ปีที่แล้ว

    Soo much work ..better download an compiler

  • @kamalikannan9636
    @kamalikannan9636 ปีที่แล้ว +1

    Thank you sir super explained

  • @abhisekbehera8619
    @abhisekbehera8619 3 ปีที่แล้ว +1

    Thanks I can understand easily

  • @lekpjedits18
    @lekpjedits18 4 ปีที่แล้ว +4

    Thank you sir💝

  • @thecraftofficial6593
    @thecraftofficial6593 3 ปีที่แล้ว +1

    Can you please give the link for java from where you downloaded

  • @shubhamdwivedi1476
    @shubhamdwivedi1476 2 ปีที่แล้ว

    Very helpful for beginners.
    Thanks sir for such kind explanation.

  • @amarjeetchaudhary5271
    @amarjeetchaudhary5271 3 ปีที่แล้ว +2

    Thankyou so much sir make this video🙏
    Jai Hind Sir 🇮🇳
    Keep it up👍👍
    My dout clear in this video,
    how to save a Java program?

  • @shilpas4811
    @shilpas4811 3 ปีที่แล้ว +1

    Thanks sir

  • @kallurishyamsundhar7195
    @kallurishyamsundhar7195 4 ปีที่แล้ว +15

    A small mistake is there in ur programme i.e, class name must be started with capital letter(upper case )
    Because java is case sensitive

    • @TechlearnersbyNeerajSaxena
      @TechlearnersbyNeerajSaxena  4 ปีที่แล้ว +13

      There is no error as starting java class with capital letter is not mandatory in java. It will give no error and u can execute the program. Making java class name that starts with capital letter is just a naming practice.

    • @kallurishyamsundhar7195
      @kallurishyamsundhar7195 4 ปีที่แล้ว +2

      Thank u sir

  • @ck4721
    @ck4721 2 ปีที่แล้ว +1

    Awesome 👍 sir

  • @veera8591
    @veera8591 2 ปีที่แล้ว +1

    class Thankyou
    {
    public static void main(String args[])
    {
    System.out.print("Thank You Very Much");
    }
    }
    😊😊😊😊

  • @rihirk8559
    @rihirk8559 3 ปีที่แล้ว +12

    2:10

  • @SmilingGardeningTools-xq8rx
    @SmilingGardeningTools-xq8rx 7 หลายเดือนก่อน +1

    Nice video 💯

  • @AjaySharma-zs8ex
    @AjaySharma-zs8ex 3 ปีที่แล้ว +1

    Thank you very much sir.

  • @krishnagiri7170
    @krishnagiri7170 3 ปีที่แล้ว +1

    Thanm you.

  • @user-eb6ep
    @user-eb6ep 2 ปีที่แล้ว +2

    Is there any reason why you saved the file in the "bin" folder? I thought you can compile and execute the file anywhere you want.

  • @ghulamjilani8940
    @ghulamjilani8940 4 ปีที่แล้ว +1

    Thanku very much

  • @riyanandi5346
    @riyanandi5346 3 ปีที่แล้ว +18

    Thank You Sir. But I have a question that is we all know that Java is case sensitive. And for all class name the first letter should be in Upper case. But you write in lower case. How it will execute?

    • @TechlearnersbyNeerajSaxena
      @TechlearnersbyNeerajSaxena  3 ปีที่แล้ว +9

      Its just a practice not mandatory to write first letter as capital. We can write it in small as well

    • @csedinesh809
      @csedinesh809 2 ปีที่แล้ว +1

      Op

  • @priyabhavana9219
    @priyabhavana9219 7 วันที่ผ่านมา

    Sir to save that in jdk bin its showing me there is no permission how i am gone save there

  • @sandeshpowar8303
    @sandeshpowar8303 ปีที่แล้ว

    In my laptop output is coming I am given enter the first number but the input is not taking and Program is correct but it is exciting and coming enter the first number but when I give the number it will not taking

  • @Dharmaveerp5463
    @Dharmaveerp5463 2 ปีที่แล้ว +1

    Thank you sir☺️

  • @muskanzv
    @muskanzv 2 ปีที่แล้ว +2

    Respect maan

  • @tgwarrior600
    @tgwarrior600 3 ปีที่แล้ว +1

    Thanks for explaining

  • @rizvirizvi1793
    @rizvirizvi1793 ปีที่แล้ว +1

    thanks

  • @shreyamegha9029
    @shreyamegha9029 2 ปีที่แล้ว +1

    Please make video for calculation sir.

  • @srikrishnabijjaram8815
    @srikrishnabijjaram8815 3 ปีที่แล้ว +1

    Thank you so much 👌

  • @athirababu2140
    @athirababu2140 3 ปีที่แล้ว +1

    Very nice video bro.. very clear

  • @samiksharamteke2855
    @samiksharamteke2855 3 ปีที่แล้ว +3

    Thank you so much, really helpful 🙏🏼

  • @bkumar2386
    @bkumar2386 3 ปีที่แล้ว +13

    Damn that bin thing it took almost year to find what wrong with my pc 😅.

  • @sushilgavit7784
    @sushilgavit7784 3 ปีที่แล้ว +1

    Thanks

  • @ashramitamohapatra8330
    @ashramitamohapatra8330 ปีที่แล้ว

    Ty so much 🙏

  • @GreatSardar
    @GreatSardar 3 ปีที่แล้ว +2

    Can you upload A second Short program video

    • @TechlearnersbyNeerajSaxena
      @TechlearnersbyNeerajSaxena  3 ปีที่แล้ว

      I have uploaded complete java tutorial and more than 75 videos on java. I am also adding more videos on it. Please watch java programming tutorial playlist on my channel #techlearners

  • @Srijavaleti
    @Srijavaleti 2 ปีที่แล้ว +1

    Sir can you keep video of c and c++ program....

  • @ronniebain9776
    @ronniebain9776 3 ปีที่แล้ว +6

    Whenever i type save file at jdk file/bin windows says "you don't have the permission to save in this location . Contact the administrator to obtain permission"
    With your experience and knowledge can you tell me how to fix this ?
    Appreciate your valuable time , thanks .

    • @TechlearnersbyNeerajSaxena
      @TechlearnersbyNeerajSaxena  3 ปีที่แล้ว +3

      1. Go to control panel and change the user account policy to minimum. Restart your PC. Now you should get permission.
      2. Login to your administrator account and run your program then
      3. From administrator account give permission to your login account for writing permission to C Drive.
      4. You can also use any java IDE like BlueJ or JCreator.

    • @commonman4227
      @commonman4227 3 ปีที่แล้ว +1

      Sir please do video for this please
      🙏🙏🙏

  • @ganaratheesh2167
    @ganaratheesh2167 3 ปีที่แล้ว +1

    Very helpful video👍

  • @ItsTheGoon06
    @ItsTheGoon06 2 ปีที่แล้ว

    Sir in my program files i don't have java folder??
    Is there any solution or do i want to install any files for that?

  • @noobgamingxp489
    @noobgamingxp489 2 ปีที่แล้ว +1

    Can you show a program.. Making a calculater

    • @TechlearnersbyNeerajSaxena
      @TechlearnersbyNeerajSaxena  2 ปีที่แล้ว

      Yes sure will try to upload soon... I have a video of calculatior but in javascript.. You can check it on my channel

  • @ramamsc_0924
    @ramamsc_0924 2 ปีที่แล้ว +1

    Thank you sir!

  • @t.b.f3279
    @t.b.f3279 3 ปีที่แล้ว +1

    Thanks! for this tutorial now i know how to run my life.

  • @rajashreeroutray7673
    @rajashreeroutray7673 2 ปีที่แล้ว +1

    Tq

  • @RamCharan_Pagadala
    @RamCharan_Pagadala ปีที่แล้ว +1

    It was showing like
    ' javac ' is not recognized as an internal or external command,
    Operable program or batch file.
    Like this .......
    Now what I want to do .....

    • @TechlearnersbyNeerajSaxena
      @TechlearnersbyNeerajSaxena  ปีที่แล้ว

      Save your file in bin folder... Follow each step carefully as explained in the video

  • @HSNClasses1987
    @HSNClasses1987 ปีที่แล้ว

    nice video

  • @venkatanarayanamca1812
    @venkatanarayanamca1812 3 ปีที่แล้ว +1

    Nice explained well sirr

  • @vivekvermaa45
    @vivekvermaa45 2 ปีที่แล้ว +1

    Sir, What is the easiest way to write the different types of java programs daily. Some of the program may be hard. It may become to hard to save and compile again and again to cheak error! It's looking time consuming. So what is the easiest way to do this process

  • @SunshineFromWithin
    @SunshineFromWithin 3 ปีที่แล้ว +1

    Thanks for the video. So those Java files always have to be in that bin folder?

    • @TechlearnersbyNeerajSaxena
      @TechlearnersbyNeerajSaxena  3 ปีที่แล้ว +2

      No not always.. Once u set the classpath or use any IDE u dont need to save them in bin folder always.

    • @SunshineFromWithin
      @SunshineFromWithin 3 ปีที่แล้ว

      @@TechlearnersbyNeerajSaxena Thank you for your answer. How do you set the classpath on a linux system where I am only using the command line, no IDE?

  • @RajvinderKaur-so9ev
    @RajvinderKaur-so9ev 10 หลายเดือนก่อน

    Is it compulsory to type program files in command prompt

  • @anzilashanavas6066
    @anzilashanavas6066 2 ปีที่แล้ว

    Sir,, how to work java program in a firm? Kindly help me

  • @MusicalSanskruti
    @MusicalSanskruti 2 ปีที่แล้ว

    Thank you so much

  • @mahithamiriyam8323
    @mahithamiriyam8323 3 ปีที่แล้ว

    My java program is not running after setting path and while execution a program which edited in notepad and saved it after opening a command prompt I did exactly WHT u did but it's showing that
    javac: file not found: javaprogram.java
    Usage:javac
    Use -help for a list of possible options
    And I entered that java space my program and enter
    It's showing that
    Error:Could not find or load main class javaprogram

  • @Typical_Expert
    @Typical_Expert 3 ปีที่แล้ว +2

    Can I only write code in the notepad?? If not how do I open Java itself to write the code, cause I tested it on cmd and everything worked but I can't find how to open java??

    • @TechlearnersbyNeerajSaxena
      @TechlearnersbyNeerajSaxena  3 ปีที่แล้ว +1

      U don need to open java... Java is a collection of packages. U can use notepad or any other editor to write ur program and then execute with java. U can also use IDE like bluej, netbeans etc

  • @nzubair3777
    @nzubair3777 ปีที่แล้ว

    Thanks!

  • @badrnaquadi9445
    @badrnaquadi9445 3 ปีที่แล้ว +1

    is it okay to save in the bin folder because there's jdk files

    • @TechlearnersbyNeerajSaxena
      @TechlearnersbyNeerajSaxena  3 ปีที่แล้ว +1

      Yes.. We need javac and java to compile and execute java program and these are in bin folder.. We can also store in other folder after setting envoirnment variable and classpath

  • @hilife6167
    @hilife6167 2 ปีที่แล้ว +1

    Very useful video

  • @atlarajeswari6082
    @atlarajeswari6082 ปีที่แล้ว

    Sir i have a problem while i was saving the program it shows like u dont have permission to save in this location what can i do plz tell me

  • @hororaibuch.5760
    @hororaibuch.5760 2 ปีที่แล้ว +1

    thank ypu my friend 😂😂😂

  • @diptijadhav8449
    @diptijadhav8449 2 ปีที่แล้ว +1

    So for every program we have to do same steps every time?

  • @sonagharat9
    @sonagharat9 3 ปีที่แล้ว +1

    Ty

  • @subhashreesamal543
    @subhashreesamal543 2 ปีที่แล้ว

    good.form me this program

  • @Er.abhimanyu_
    @Er.abhimanyu_ 3 ปีที่แล้ว +1

    Thanku sir

  • @dhanushgowda8827
    @dhanushgowda8827 10 หลายเดือนก่อน

    Thanks 🙏