Home  >  Article  >  Java  >  How to modify the default version of java in eclipse

How to modify the default version of java in eclipse

王林
王林Original
2019-11-19 13:27:285013browse

How to modify the default version of java in eclipse

The first step is to open eclipse, click Window, and then click Preferences in the pop-up box, as shown below:

How to modify the default version of java in eclipse

## In the second step, click Java in the entry bar on the left, then click Installed JREs under Java, and then click the Add button on the right, as shown below:

How to modify the default version of java in eclipse

Step three, select Standard VM in the pop-up box, and then click the Next button, as shown in the figure below:

How to modify the default version of java in eclipse

Step four, in the Add JRE pop-up box, click the Directory button , select the local jdk, as shown in the figure below:

How to modify the default version of java in eclipse

The fifth step is to find the local jdk installation path in the pop-up box, select the jdk folder level, and then click OK , as shown in the figure below:

How to modify the default version of java in eclipse

The sixth step, after selecting jdk, you can edit the JRE name column to customize the name, and then click Finish, as shown in the figure below:

How to modify the default version of java in eclipse

The seventh step is to check the newly added jdk, then click Apply, and finally click OK. The entire configuration is complete. If you just simply switch the default jdk, just Check it and click Apply, then click OK

How to modify the default version of java in eclipse

Recommended tutorial:

Getting started with java development

The above is the detailed content of How to modify the default version of java in eclipse. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn