Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
414 views
in Technique[技术] by (71.8m points)

java - Problems with changing jdk version

I have faced with a problem after I have changed the jdk version in intellij idea.

In my pom file I have next properties:

<source-jdk>1.8</source-jdk>
<target-jdk>1.8</target-jdk> 

And when maven is starting build project - at console showing the correct version of jdk - 1.8: C:Program FilesJavajdk1.8.0_131injava

But when I am trying to start project the console showing the previous version of jdk: C:Program FilesJavajdk1.7.0_79injava

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The problem was hiding inside "Edit configuration". You can choose jre version there.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...