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
This is the only video which has properly explained how to install java and set its path .Thank You !!
Glad it helped
Thanks so much sir, really helpful
Happy to help
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?
Glad it helped! It's permanent so don't worry
Thanks ,Really Helpful
Glad it helped
Thanks a lot for this bro
Always welcome😁
great tutorial, helped me right away
Glad it helped!
Bhai pura procedure follow kiya par home path set nh ho raha hai
Kya error hai??
thanks for help!
Happy to help...😁😁😁
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????
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
@@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 🙏🙏🙏
Thanks a lot bhai ❤❤❤❤❤
Anytime
Hello sir, which are the problem you face in mackbook air M1 while developing project
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
What the keep button are macos
Sorry, I didn't get. Can you please explain again?
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?
Thnx Bro..
Your Welcome... Always happy to help...🙂
very nice video.
Many many thanks
Aniket I followed these steps but in visual studio code my Java compiler is not working
Please let me know the problem
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?
Same goes with me
Please reach out to me on my mail Id... sorry for the late reply... Actually I was out of town
@@decoderav ur email address?
i followed all steps but on last step source ~/.bash.profile, getting below error . Please help
source: no such file or directory:
it's not bash.profile..... Its bash_profile... There is undersocre(_) between bash and profile... not a dot(.)
Hope this will help
Great 👍
Thank you! Cheers!
Which coding app and servers app might not run on Mac OS
So far everything is working fine for me and I'm using Mac since 8 years now... So don't worry
Sir please upload a video on how to download mysql server .
I've been searching for it 😭😭😭
I will try ASAP
bhai apne jo bataya usme java home ka oath dalne ke baaad :wq ho hi nhi rha hai
Press esc button first. Sorry for the late reply
It’s ok i solved the problem
When I'm doing vim.bash_prifile .
It's coming command not found .
What do I do now ?
give space between vim and ,bash profile
It's vim bash_profile... No dot(.) In between
@@decoderav Thank you so much for the reply.
Thank you
You're welcome
Hi which macbook you are using ?
getting following issue : source ~/.bash_profile
/Users/ashwanipandey/.bash_profile:export:2: not valid in this context: Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
MacBook Pro 16 inch
@@decoderav so ur laptop is intel based that’s why configuration is different
Aniket after setting java on mac what do we need to do for running the programs
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