Install Java and set up Java Home Path in macOS from scratch | In Hindi

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ส.ค. 2024
  • NOTE: bash_profile spelling is not right in the video. By mistake I wrote bash_prifile, please pay attention to this.
    How to Install and Setup Java in MacOS
    Step 1. Download Java from
    - www.oracle.com...
    Step 2. Find Java Home Path
    - /usr/libexec/java_home -v18
    Step 3. Set Java Home Path in Bash Profile
    - vim .bash_profile
    - export JAVA_HOME={PATH from Step 2}
    - source ~/.bash_profile
    Step 4. Check Everything
    - echo $JAVA_HOME
    - java -version
    - javac -version

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

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

    This is the only video which has properly explained how to install java and set its path .Thank You !!

    • @decoderav
      @decoderav  7 หลายเดือนก่อน

      Glad it helped

  • @rohitbatra1169
    @rohitbatra1169 3 หลายเดือนก่อน +1

    Thanks so much sir, really helpful

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

      Happy to help

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

    Tried other videos as well, but nothing helped. I am in learning stage so wanted a simple explanation and it worked for me. Thanks. Just one question. Will this setup the java home permanently or just on temporary basis??? Do I have to set it every time I start using it?

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

      Glad it helped! It's permanent so don't worry

  • @technicalinzi1415
    @technicalinzi1415 11 หลายเดือนก่อน +1

    Thanks ,Really Helpful

    • @decoderav
      @decoderav  11 หลายเดือนก่อน

      Glad it helped

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

    Thanks a lot for this bro

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

      Always welcome😁

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

    great tutorial, helped me right away

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

      Glad it helped!

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

    Bhai pura procedure follow kiya par home path set nh ho raha hai

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

      Kya error hai??

  • @DIVYANSHU267
    @DIVYANSHU267 10 หลายเดือนก่อน +1

    thanks for help!

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

      Happy to help...😁😁😁

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

    yeah all the things shown in the video are done nicely and JAVA is installed in my mac......BUT HOW TO RUN IT?........I mean where do we start doing java coding????

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

      You can create a java File with .java extension.... and the run it with javac command. This might me confusing... Please let me know if you don't get it and I will create a video for this

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

      @@decoderav yeah that's definitely confusing because I didn't get a clue what ".Java extension" and "javac command" means...... so please make a video for it 🙏🙏🙏

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

    Thanks a lot bhai ❤❤❤❤❤

  • @hunter.1803
    @hunter.1803 ปีที่แล้ว +1

    Hello sir, which are the problem you face in mackbook air M1 while developing project

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

      There is no problem with development on Macbook Air M1. There are few things that I need to share with you guys.... I will create a video for that... very soon

  • @omkarghodke5916
    @omkarghodke5916 20 วันที่ผ่านมา +1

    What the keep button are macos

    • @decoderav
      @decoderav  19 วันที่ผ่านมา

      Sorry, I didn't get. Can you please explain again?

    • @omkarghodke5916
      @omkarghodke5916 19 วันที่ผ่านมา

      Step 3)? pasted the path copy in the bash profile, next I press the option, which button is there to ( keep ) in mac?
      2)Step3 reexplain plz?

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

    Thnx Bro..

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

      Your Welcome... Always happy to help...🙂

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

    very nice video.

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

      Many many thanks

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

    Aniket I followed these steps but in visual studio code my Java compiler is not working

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

      Please let me know the problem

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

    While writing hello world program in vs code it shows java is a non project file only syntax error are reported what should I do?

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

      Same goes with me

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

      Please reach out to me on my mail Id... sorry for the late reply... Actually I was out of town

    • @Little_wings.
      @Little_wings. ปีที่แล้ว

      @@decoderav ur email address?

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

    i followed all steps but on last step source ~/.bash.profile, getting below error . Please help
    source: no such file or directory:

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

      it's not bash.profile..... Its bash_profile... There is undersocre(_) between bash and profile... not a dot(.)
      Hope this will help

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

    Great 👍

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

      Thank you! Cheers!

  • @hunter.1803
    @hunter.1803 ปีที่แล้ว +1

    Which coding app and servers app might not run on Mac OS

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

      So far everything is working fine for me and I'm using Mac since 8 years now... So don't worry

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

    Sir please upload a video on how to download mysql server .
    I've been searching for it 😭😭😭

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

      I will try ASAP

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

    bhai apne jo bataya usme java home ka oath dalne ke baaad :wq ho hi nhi rha hai

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

      Press esc button first. Sorry for the late reply

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

      It’s ok i solved the problem

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

    When I'm doing vim.bash_prifile .
    It's coming command not found .
    What do I do now ?

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

      give space between vim and ,bash profile

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

      It's vim bash_profile... No dot(.) In between

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

      @@decoderav Thank you so much for the reply.

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

    Thank you

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

      You're welcome

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

    Hi which macbook you are using ?

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

      getting following issue : source ~/.bash_profile
      /Users/ashwanipandey/.bash_profile:export:2: not valid in this context: Plug-Ins/JavaAppletPlugin.plugin/Contents/Home

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

      MacBook Pro 16 inch

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

      @@decoderav so ur laptop is intel based that’s why configuration is different

  • @ebwankenobi.thechosenwan.3249
    @ebwankenobi.thechosenwan.3249 2 ปีที่แล้ว

    Aniket after setting java on mac what do we need to do for running the programs

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

      You can use some IDE for writing and compiling your program. For java you can you IntelliJ Idea. It’s community version is free to use