Java multiple environment configuration & .bat configuration file

Install the java environment package

Renaming the java environment: preventing conflicts

Configure environment variables

The environment configuration is added as follows

Add to

Test version: There are two versions, just enter the corresponding statement in which environment you want to run

Multiple java environment configurations have been completed above

2. Create a bat running program: it is convenient to run the jar package

Create a .vbs file first, the content is as follows, just change the corresponding bat file name

Then create a .bat file with the following content

Principle: The vbs file calls the bat file, and the bat then runs the cmd command

Double-click to run the vbs file next time to run the jar package directly

Guess you like

Origin blog.csdn.net/qq_63283137/article/details/127472723