更改JDK版本的问题
在intellij想法中更改了jdk版本后,我遇到了一个问题.
I have faced with a problem after I have changed the jdk version in intellij idea.
在我的pom文件中,我具有下一个属性:
In my pom file I have next properties:
<source-jdk>1.8</source-jdk>
<target-jdk>1.8</target-jdk>
当maven开始构建项目时-在控制台上显示正确版本的jdk-1.8:C:\Program Files\Java\jdk1.8.0_131\bin\java
And when maven is starting build project - at console showing the correct version of jdk - 1.8: C:\Program Files\Java\jdk1.8.0_131\bin\java
但是当我尝试启动项目时,控制台会显示以前版本的jdk:C:\Program Files\Java\jdk1.7.0_79\bin\java
But when I am trying to start project the console showing the previous version of jdk: C:\Program Files\Java\jdk1.7.0_79\bin\java
有人可以帮助我解决这个问题吗?
Can anybody help me with this problem ?
我认为这对我来说是个问题,我无法启动该项目.
I think that this is produce issue for me that i am not able to start the project.
问题已解决,请在下面查看我自己的答案
THE PROBLEM RESOLVED see my own answer below
问题隐藏在编辑配置"中.您可以在那里选择jre版本.
The problem was hiding inside "Edit configuration". You can choose jre version there.