[Java & SpringBoot] Environment Construction for Mac

Overview

When developing with IntelliJ on MacOS Mojave, the cloned project did not work, so I wrote a memo when I moved it. Not versatile.

Procedure --Java downgrade --IntelliJ settings

Java8 Install Checking your environment

$ java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_212-b03)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.212-b03, mixed mode)

With that feeling, if it is 1.8.0_XXX, it's probably OK.

If not, do the following:

$ brew tap AdoptOpenJDK/openjdk
$ brew cask install adoptopenjdk8

It should be DL to /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/. Java is placed in / Library / Java / JavaVirtualMachines / adoptopenjdk-8.jdk / Contents / Home / bin /.

Next, check the version.

$ /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin/java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_212-b03)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.212-b03, mixed mode)

OK. Although it is troublesome, the environment is built by directly specifying and calling this / Library / Java / JavaVirtualMachines / adoptopenjdk-8.jdk / Contents / Home. (If you set it to IntelliJ first, you won't touch it after that, so you shouldn't have to worry about it after that.)

Set in IntelliJ

Click [Run]-> [Edit Configuration] on the menu bar above. Screen Shot 2019-06-12 at 23.41.30.png

Set the JRE. Click [...] on the right Screen Shot 2019-06-12 at 23.36.59.png

Select / Library / Java / JavaVirtualMachines / adoptopenjdk-8.jdk / Contents / Home / and click [Open]. (If you press [Command + Shift + G], it will appear as shown in the image below when you hit the path.) Screen Shot 2019-06-12 at 23.39.38.png

Finally, after confirming that / Library / Java / JavaVirtualMachines / adoptopenjdk-8.jdk / Contents / Home is specified properly, click [Apply] and [OK] !! Screen Shot 2019-06-12 at 23.39.54.png

MySQL Check the version of mysql (check if it is installed)

$ mysql -V

MySQL can be installed with the latest version Ver 8.0.16 for osx10.14 that can be installed with brew, so you don't have to worry about it.

If it is not installed, install it.

$ brew install mysql

server start

$ mysql.server start

Success !!

the end

Now it should be feasible! I hope it is.

Recommended Posts

[Java & SpringBoot] Environment Construction for Mac
[Java] Environment construction
Java environment construction
Build Java development environment (for Mac)
Java development environment construction memo on Mac
java development environment construction
Rails6 development environment construction [Mac]
Java development environment (Mac, Eclipse)
JavaFX environment construction in Java 13
AtCoder Challenge Environment Construction (Java 8)
[Rails / MySQL] Mac environment construction
Java installation location for mac
[Mac] VS Code development environment construction (Java, Gradle, Node.js)
Environment construction for Servlet application development
Environment construction with Docker for beginners
Ruby environment construction summary ~ mac version ~
[OpenCV3.2.0] Eclipse (Java) settings (for Mac)
Java development environment (Mac, VS Code)
Install Java development environment on Mac
[ev3 × Java] leJOS development environment construction (Eclipse on Mac OSX / bluetooth)
Java runtime environment construction method (Tomcat @ Linux)
[Processing x Java] Construction of development environment
Spring Boot environment construction memo on mac
Laravel development environment construction with Docker (Mac)
What is Java and Development Environment (MAC)
Build a Java development environment on Mac
Spring Boot + Docker Java development environment construction
Modern Java environment for Windows using Chocolatey
Scala starting from scratch (environment construction mac)
[Environment construction] Spring Tool Suite4 installation (Mac)
Minimal Java environment construction and Hello World
For JAVA learning (2018-03-16-01)
VisualStudioCode + Java + SpringBoot
Creating a java web application development environment with docker for mac part1
2017 IDE for Java
[Spring] Environment construction
Docker environment construction
Create a java web application development environment with docker for mac part2
Java for statement
Make SpringBoot1.5 + Gradle4.4 + Java8 + Docker environment compatible with Java11
Environment construction procedure for using PowerMock with JUnit
Building a Ruby environment for classes on Mac
CI / CD practice for beginners --Part1 --Environment construction
[Ubuntu 18.04] Environment construction for using PyTorch with RTX3090
Solution for NetBeans 8.2 not working in Java 9 environment
JAVA + STS (Spring Tool Suite) environment construction procedure
[Notepad ++] C language / Java compilation & execution environment construction
IntelliJ + Docker (APP + DB) + SpringBoot (Maven) environment construction
Ruby on Rails development environment construction on M1 Mac
Build a development environment for Docker, java, vscode
Introduction to kotlin for iOS developers ①-Environment construction
Penronse environment construction [Windows]
[LeJOS] Let's program mindstorm-EV3 in Java [Environment construction part 2]
Create a Java development environment using jenv on Mac
Build Java development environment with VS Code on Mac
[Environment construction] Eclipse installation
[Flutter] Ubuntu 20.04 environment construction
Java development environment memo
Install Java on Mac
Java development environment construction on Mac-JDK Install (2020 preservation version)
[Summary] Java environment preparation