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!

  • @shivamchauhan200
    @shivamchauhan200 4 роки тому +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 ...

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

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

  • @cuaresmapauliney.2701
    @cuaresmapauliney.2701 3 роки тому +15

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

  • @souravgazmer1977
    @souravgazmer1977 3 роки тому +3

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

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

    This is so straight forward explanation. Thanks

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

  • @ganeshchintala6668
    @ganeshchintala6668 2 роки тому +18

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

  • @nishantgaur131
    @nishantgaur131 4 роки тому +2

    Thanks sir
    It's really helpful 😁

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

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

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

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

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

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

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

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

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

    Superb explanation sir,thank you very much sur,

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

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

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

  • @Asgaming-bl7qn
    @Asgaming-bl7qn 2 роки тому +1

    Thanks as tomorrow is my practical

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

    Thankyou soo much anna for your explanation🎉

  • @SmilingGardeningTools-xq8rx
    @SmilingGardeningTools-xq8rx 8 місяців тому +1

    Nice video 💯

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

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

  • @malliswarigutti7372
    @malliswarigutti7372 3 роки тому +1

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

  • @vaibhavsinghania8368
    @vaibhavsinghania8368 3 роки тому +2

    Thank you sir! Really helped a lot.

  • @misbahmulla8796
    @misbahmulla8796 4 роки тому +1

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

  • @nabanitadutta6200
    @nabanitadutta6200 4 роки тому +22

    You're really awesome sir. Respect 🙌

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

    Respect maan

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

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

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

    nice video

  • @Axe_prashu
    @Axe_prashu 3 роки тому +1

    tq sir becouse i successfully excution the my first program

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

    Thank you sir super explained

  • @nehapatil2495
    @nehapatil2495 4 роки тому +6

    Thank you☺️

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

    Understood
    so I just stand here

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

    Thank you so much sir

  • @athirababu2140
    @athirababu2140 3 роки тому +1

    Very nice video bro.. very clear

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

  • @thecraftofficial6593
    @thecraftofficial6593 3 роки тому +1

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

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

    Soo much work ..better download an compiler

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

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

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

    thanks

  • @sportgamer8273
    @sportgamer8273 3 роки тому +1

    Very nice

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

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

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

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

    Awesome 👍 sir

  • @rihirk8559
    @rihirk8559 3 роки тому +12

    2:10

  • @arpita8499
    @arpita8499 3 роки тому +1

    Thank you sir! Really helped

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

    Very useful video

  • @priyasharma-pi2oc
    @priyasharma-pi2oc 3 роки тому +1

    Thnq it's very helpful for us 🙏

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

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

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

  • @tgwarrior600
    @tgwarrior600 3 роки тому +1

    Thanks for explaining

  • @ganaratheesh2167
    @ganaratheesh2167 3 роки тому +1

    Very helpful video👍

  • @tanishqwaghmare961
    @tanishqwaghmare961 3 роки тому +1

    thanks sir bir fan shout out

  • @ronniebain9776
    @ronniebain9776 4 роки тому +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
      🙏🙏🙏

  • @krishnagiri7170
    @krishnagiri7170 3 роки тому +1

    Thanm you.

  • @venkatanarayanamca1812
    @venkatanarayanamca1812 3 роки тому +1

    Nice explained well sirr

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

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

  • @bkumar2386
    @bkumar2386 3 роки тому +13

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

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

    Thanks a lot Sir 🙏🏻

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

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

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

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

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

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

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

  • @aishwaryapadki6606
    @aishwaryapadki6606 3 роки тому +2

    Sir, I'm having a issues... It says that I can't save in this location i.e., bin since I don't have permission to save there? What should I do?

    • @TechlearnersbyNeerajSaxena
      @TechlearnersbyNeerajSaxena  3 роки тому +2

      Go to settings and change user control settings to allow saving of files in c drive

    • @angelicnights6913
      @angelicnights6913 3 роки тому

      Same prob, i could nt fix this in settings.. pls help me

  • @shilpas4811
    @shilpas4811 3 роки тому +1

    Thanks sir

  • @lekpjedits18
    @lekpjedits18 4 роки тому +4

    Thank you sir💝

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

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

  • @JohnJones-gq4qt
    @JohnJones-gq4qt 3 роки тому +1

    Excellent

  • @krishnagiri7170
    @krishnagiri7170 3 роки тому +1

    Thank you sir.

  • @abhisekbehera8619
    @abhisekbehera8619 3 роки тому +1

    Thanks I can understand easily

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

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

    Thank you sir☺️

  • @deadshotgamer4964
    @deadshotgamer4964 3 роки тому +2

    What to do when
    When entering the command javac and it is showing that javac is not an internal or external command??

  • @t.b.f3279
    @t.b.f3279 3 роки тому +1

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

  • @Er.abhimanyu_
    @Er.abhimanyu_ 3 роки тому +1

    Thanku sir

  • @samiksharamteke2855
    @samiksharamteke2855 3 роки тому +3

    Thank you so much, really helpful 🙏🏼

  • @AjaySharma-zs8ex
    @AjaySharma-zs8ex 3 роки тому +1

    Thank you very much sir.

  • @hororaibuch.5760
    @hororaibuch.5760 2 роки тому +1

    thank ypu my friend 😂😂😂

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

  • @gorlavaishnavi5948
    @gorlavaishnavi5948 3 роки тому +1

    Sir while compiling it is showing that please remove or make sure it appears in the correct subdirectory of the classpath
    How to solve this plz reply me sir?

    • @TechlearnersbyNeerajSaxena
      @TechlearnersbyNeerajSaxena  3 роки тому

      U can set classpath.. Or store program in same directory where you have javac.. Usually it is inside bin folder.. Please follow the steps explained in the video of execution carefully ..if still u have any problem then do let me know.

  • @ghulamjilani8940
    @ghulamjilani8940 4 роки тому +1

    Thanku very much

  • @RajvinderKaur-so9ev
    @RajvinderKaur-so9ev 10 місяців тому

    Is it compulsory to type program files in command prompt

  • @krithikakrithika5821
    @krithikakrithika5821 3 роки тому +3

    Sir for me it's not coming..in command prompt..
    At 3:24 for me it's coming as the system path is specified
    And > this symbol is coming for next next steps.....

    • @TechlearnersbyNeerajSaxena
      @TechlearnersbyNeerajSaxena  3 роки тому

      Please watch video carefully and follow each step.. If you still face any problem then let me know

  • @shinosukenohara.123
    @shinosukenohara.123 2 роки тому +1

    But, it is telling that you dont have the permission to save in bin folder, what should i do ?

  • @dubbakaswetha1136
    @dubbakaswetha1136 3 роки тому +1

    Sir, why do we save the program in bin ?...And I'm a beginner..im not finding the java in the HP?? How do I save my program please help

    • @TechlearnersbyNeerajSaxena
      @TechlearnersbyNeerajSaxena  3 роки тому +1

      U need to i stall jdk in ur system.. Qe save java file in bin because in bin there is compiler.. We can also save java file anywhere after setting classpath

  • @shantikumari6824
    @shantikumari6824 4 роки тому +1

    I am unable to save program in bin file..help me fix it out

  • @srikrishnabijjaram8815
    @srikrishnabijjaram8815 3 роки тому +1

    Thank you so much 👌

  • @rajiv_rajput
    @rajiv_rajput 3 роки тому +3

    Sir, in command prompt, 'javac' command is not working !!!!!!!!!!!

    • @TechlearnersbyNeerajSaxena
      @TechlearnersbyNeerajSaxena  3 роки тому

      Test two things 1. You r running javac while ur current directory is bin 2 is java properly installed in ur system

  • @sonagharat9
    @sonagharat9 4 роки тому +1

    Ty

  • @briannagardner8354
    @briannagardner8354 3 роки тому +1

    Okay so I've done everything in the video and it all worked but now I don't know how to actually open it where it shows the output on the code on a browser. Any advice?

    • @TechlearnersbyNeerajSaxena
      @TechlearnersbyNeerajSaxena  3 роки тому +1

      In this i jave used two softwares notepad and xommand prompt... Both can be opened from windows starr or run options.. Ur source file can be opened from bin folder

    • @briannagardner8354
      @briannagardner8354 3 роки тому +1

      @@TechlearnersbyNeerajSaxena I've tried to open and run but I keep getting shut down. It's basically says that this type of file can harm my computer. I hit to keep but it still won't open it. Any idea what the problem is and how to fix it?

    • @TechlearnersbyNeerajSaxena
      @TechlearnersbyNeerajSaxena  3 роки тому

      I would like to know more and see screenshots of ur pc..email me ur error screenshots, what u r doing and wat is ur problem on my email id... Techlearners.ns@GMAIL.COM

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

    sir there is not jdk file sir what can i do sir please tell sir

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

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

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

    good.form me this program