Home > Back-end >  How centos7.6 JDK and its installation and use at the same time
How centos7.6 JDK and its installation and use at the same time

Time:10-11

Company purchased a ali cloud server, now need to deploy the two application, but two different applications use the JDK,

The server has deployed a application, using the OpenJDK1.8 + tomcat + mysql

Now I want to deploy an application, but the use environment is JDK1.6 + JBOSS

Excuse me each great god I should how to operate?

CodePudding user response:

Because with two JDK so JDK path is not the same, the startup scripts in the jboss configuration javahome or path

CodePudding user response:

Very simple,
First of all, its and the JDK is installed directly
In starting the application script processing, modify tomcat or jboss startup scripts, increase java_home at the beginning, or in the Java command with an absolute path

CodePudding user response:

Command line setting bin path, and then use the command line start the program, so that the path environment variable is the path you specify

CodePudding user response:

Command line to modify environment variables
https://blog.csdn.net/sxzlc/article/details/104910162

CodePudding user response:

Command line to modify environment variables
https://blog.csdn.net/sxzlc/article/details/104910162

Command line launcher
start
  • Related