- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to set JAVA_HOME for Java in Mac OS?
Assuming you have installed Java in \usr\local\java\jdk directory −
if you use bash as your shell, then you would add the following line to the end of your '.bashrc: export JAVA_HOME=\usr\local\java\jdk'
- Related Articles
- How to set Java Path in Mac OS?
- How to set JAVA_HOME environment variables on Windows OS in Java?
- How to set JAVA_HOME for Java in Windows?
- How to set JAVA_HOME for Java in Linux?
- How to install Selenium WebDriver on Mac OS?
- Mac OS X Structure
- How to set Java Path in Linux OS?
- Recommended IDEs for C# on Windows/Linux/Mac OS
- Installing Python on Mac OS
- How to compile and execute C# programs on Mac OS?
- What languages have been used to write Windows, Mac OS and Linux OS?
- How to add a new entry to the PATH variable in ZSH on Mac OS in Linux
- How to set your python path on Mac?
- How to set python environment variable PYTHONPATH on Mac?
- What is JAVA_HOME variable in Java Environment?

Advertisements