Set up a Java development environment using FlyEnv
FlyEnv already supports setting up a Java development environment. Using FlyEnv, you can quickly download and install Java, Maven, and Tomcat. It supports openjdk8 to the latest version of JDK. It supports Maven from 2.x to the latest version. It supports Tomcat8 to the latest version of Tomcat.
- Install java jdk and set environment variables
In the Java module version management, install the required JDK version
In the service management panel, set the java environment variable. The relevant binary command path of java will be automatically added to PATH. At the same time, the JAVA_HOME environment variable will be automatically set.
- Install Maven and set environment variables
In the Java module Maven management, install the required maven version and set the environment variable
- Install Tomcat and set environment variables
Install Tomcat
Set environment variables
Now you have a Java development environment that includes JDK, Maven, and Tomcat