Java Development Setup on Mac
1 minute read
Java Development Environment Setup on MacOs
Setup Steps
- Create a development directory structure to work on Java programs
- Open the terminal
- Within your user home directory
/Users/<user name>
- Create a directory named devarea
- Move into the devarea directory
- Create the following directories
mkdir projects
mkdir repos
mkdir javaDev
- Verify java is installed and the version
- Open the terminal
- Type the following command to view the java version
- Verify the location of the java that is being used
- Open the terminal to view the location of the java being used
- Type the following command to
- If needed, manually install Java
- https://mkyong.com/java/how-to-install-java-on-mac-osx/#manual-install-java-early-access-builds-on-macos
- Set the JAVA_HOME variable that can be utilized by Maven and other Java development tools.
- The JAVA_HOME variable is used by applications and commands to provide the location of the installed java to use.
- Follow the steps listed in the following tutorial
- Install Maven and set the MAVEN_HOME variable
- Install Intellij Toolbox
- Download from the following location:
- Use Intellij Toolbox to install Intellij Idea
- Download the regular version; Do not download the community
- Set the license key for Intellij Idea