How to set JAVA_HOME on Mac | Setting up $JAVA_HOME on macOS (2024)

Поделиться
HTML-код
  • Опубликовано: 9 ноя 2024

Комментарии • 29

  • @nestorjavierheviapavon7447
    @nestorjavierheviapavon7447 7 месяцев назад

    Thank you very much, you relieved a weight from my shoulders, I have never understood this about environment variables well, you saved me time, I had already tried to do it alone and it had consumed 5 hours of my time.

  • @deepvirenderkaur2724
    @deepvirenderkaur2724 4 месяца назад

    Thank you for explaining it so clearly. I learned today how to set the JAVA_HOME path on a Mac🙂

  • @kirangem
    @kirangem 25 дней назад

    Thank you this is helpful

  • @chadsmith71
    @chadsmith71 Месяц назад

    excellent video. you earned a new subscriber. well done.

  • @Pro_Znakomstva
    @Pro_Znakomstva 8 месяцев назад

    Thank you bro you saved my day

  • @SameerShende19
    @SameerShende19 3 месяца назад

    Thanks. It was very useful.

  • @JessicaCarvalho-zu4lx
    @JessicaCarvalho-zu4lx 6 месяцев назад +4

    When I run "echo $JAVA_HOME" its returning empty

  • @ReactNativerse
    @ReactNativerse 8 месяцев назад

    Superb

  • @birundhaashokan
    @birundhaashokan 4 месяца назад

    Really you saved me❤

  • @AmanSharma-vb5jl
    @AmanSharma-vb5jl Месяц назад

    thanks bro

  • @mertkaraman06
    @mertkaraman06 8 месяцев назад

    thank you very much

  • @pjflordeliz1664
    @pjflordeliz1664 5 месяцев назад

    Thank you so much!

  • @JonesJones-np2kq
    @JonesJones-np2kq 3 месяца назад

    Thanks!

  • @habeebkinlolu9668
    @habeebkinlolu9668 6 месяцев назад

    Thanks altot Man 🎉🎉

  • @Unknown-rw6og
    @Unknown-rw6og 5 месяцев назад

    Thank you a lot bro))

  • @myt7791
    @myt7791 8 месяцев назад +1

    Hi, I'm getting this error in the mac terminal. Whenever I open a new terminal, Its showing this error "user/praveen/ .zshenv:1: command not found: Export"

    • @Phil-Dustin
      @Phil-Dustin Месяц назад

      Did you find the solution?
      I am having the same problem

    • @myt7791
      @myt7791 Месяц назад

      @@Phil-Dustin The error message `.zshenv:1: command not found: Export` suggests that there is a typo in your `.zshenv` file. The correct command should be `export` (all lowercase), not `Export`. The shell commands are case-sensitive, and having the wrong case can lead to such command not found errors.
      To fix this, you'll need to edit the `.zshenv` file and correct the command. Here's how you can do it:
      1. Open the terminal.
      2. Type `nano ~/.zshenv` and press Enter to open the file in the nano text editor.
      3. Look for the line that contains `Export` and change it to `export`.
      4. Save the changes by pressing `Ctrl + O`, then press Enter.
      5. Exit nano by pressing `Ctrl + X`.
      After making these changes, the error should no longer appear when you open a new terminal window. If you're not comfortable using nano, you can use any other text editor you're familiar with to make this change. Remember to be cautious when editing configuration files like `.zshenv` to avoid further issues.

    • @myt7791
      @myt7791 Месяц назад

      @@Phil-Dustin The error message `.zshenv:1: command not found: Export` suggests that there is a typo in your `.zshenv` file. The correct command should be `export` (all lowercase), not `Export`. The shell commands are case-sensitive, and having the wrong case can lead to such command not found errors.
      To fix this, you'll need to edit the `.zshenv` file and correct the command. Here's how you can do it:
      1. Open the terminal.
      2. Type `nano ~/.zshenv` and press Enter to open the file in the nano text editor.
      3. Look for the line that contains `Export` and change it to `export`.
      4. Save the changes by pressing `Ctrl + O`, then press Enter.
      5. Exit nano by pressing `Ctrl + X`.
      After making these changes, the error should no longer appear when you open a new terminal window. If you're not comfortable using nano, you can use any other text editor you're familiar with to make this change. Remember to be cautious when editing configuration files like `.zshenv` to avoid further issues.

    • @myt7791
      @myt7791 Месяц назад

      @@Phil-Dustin

    • @myt7791
      @myt7791 Месяц назад +1

      The error message `.zshenv:1: command not found: Export` suggests that there is a typo in your `.zshenv` file. The correct command should be `export` (all lowercase), not `Export`. The shell commands are case-sensitive, and having the wrong case can lead to such command not found errors.
      To fix this, you'll need to edit the `.zshenv` file and correct the command. Here's how you can do it:
      1. Open the terminal.
      2. Type `nano ~/.zshenv` and press Enter to open the file in the nano text editor.
      3. Look for the line that contains `Export` and change it to `export`.
      4. Save the changes by pressing `Ctrl + O`, then press Enter.
      5. Exit nano by pressing `Ctrl + X`.
      After making these changes, the error should no longer appear when you open a new terminal window. If you're not comfortable using nano, you can use any other text editor you're familiar with to make this change. Remember to be cautious when editing configuration files like `.zshenv` to avoid further issues.

  • @kkty159
    @kkty159 Месяц назад

    it says I am not the owner of the file

  • @remijoel1448
    @remijoel1448 8 месяцев назад

    Am getting an error when I enter "source .zshrc"....pls help

    • @Phil-Dustin
      @Phil-Dustin Месяц назад +1

      Did you find the solution

    • @remijoel1448
      @remijoel1448 Месяц назад

      @@Phil-Dustin I did... I did

    • @Phil-Dustin
      @Phil-Dustin Месяц назад

      Could you share the solution please

    • @remijoel1448
      @remijoel1448 Месяц назад

      @@Phil-Dustin it's the same as the tutorial vid tho i don't really remember what I did but so far it's working for me cuz I had to do it to make a software work