Find JAVA_HOME JDK Location on macOS

access_time 24 days ago visibility13 comment 0

This article provides the steps to locate Java JDK location on macOS. The system version is 11.1 (macOS Big Sur).

Find JDK

  1. Open Terminal.
  2. Change directory to /Library/Java/JavaVirtualMachines.
    cd /Library/Java/JavaVirtualMachines
  3. List JDKs:
    ls
  4. In my system, there are two SDKs (JDK8 and JDK11):
bash-3.2$ ls
jdk-11.0.9.jdk          jdk1.8.0_201.jdk

Setup JAVA_HOME variable

JAVA_HOME variable is required by a number of Java dependent applications. Use the following command line to setup the variable:

export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk-11.0.9.jdk/Contents/Home"
info Last modified by Administrator 24 days ago copyright This page is subject to Site terms.
Like this article?
Share on

Please log in or register to comment.

account_circle Log in person_add Register

Log in with external accounts

Follow Kontext

Get our latest updates on LinkedIn or Twitter.

Want to publish your article on Kontext?

Learn more

More from Kontext

visibility 13
thumb_up 0
access_time 24 days ago

This article provides the steps to locate Java JDK location on macOS. The system version is 11.1 (macOS Big Sur). Open Terminal . Change directory to /Library/Java/JavaVirtualMachines . cd /Library/Java/JavaVirtualMachines List JDKs: ls In my system, there are two SDKs (JDK8 and ...

visibility 15
thumb_up 0
access_time 27 days ago

In article Connect to SQL Server in Spark (PySpark) ,  I showed how to connect to SQL Server in PySpark. Data can be loaded via JDBC, ODBC and Python drivers. In this article, I will directly use JDBC driver to load data from SQL Server with Scala. Download Microsoft JDBC Driver for SQL ...

visibility 1622
thumb_up 0
access_time 9 months ago

Python JayDeBeApi module allows you to connect from Python to Teradata databases using Java JDBC drivers. In article Connect to Teradata database through Python , I showed how to use teradata package to connect to Teradata via Teradata ODBC driver. This article demos how to use this JayDeBeApi ...

About column