| Author |
The specified jre installation does not exist
|
Kumar Raja
Ranch Hand
Joined: Mar 18, 2010
Posts: 420
|
|
HiAll,
I'm new to Maven and have not used maven tool in the past. Our project is a maven project and I was given to run some tests for the project.
I right clicked on "pom.xml" in eclipse and selected "Maven:test" and it throws me error "The specified jre installation is not found". Ihave my JAVA_HOME set and can run ant build.xml with out any problem. Is there anything else I need to set for having Maven find my jre installation.
As mentioned below, I have java 1.6 installed and setup for accessing through eclipse.
Thanks
|
Regards
KumarRaja
|
 |
Martijn Verburg
author
Bartender
Joined: Jun 24, 2003
Posts: 3206
|
|
|
The Maven compiler plugin will have the JRE level it wants to use in your pom.xml, I believe it defaults to 1.4
|
Cheers, Martijn - Blog, Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!
|
 |
Kumar Raja
Ranch Hand
Joined: Mar 18, 2010
Posts: 420
|
|
|
But does this mean, I can not use any other JRE version. If not, how and where do I set this.
|
 |
Martijn Verburg
author
Bartender
Joined: Jun 24, 2003
Posts: 3206
|
|
|
Hmmm, are you using the m2eclipse plugin for eclipse?
|
 |
Kumar Raja
Ranch Hand
Joined: Mar 18, 2010
Posts: 420
|
|
No,
If I'm looking at the right thing, I'm using Sonatype Maven plugin. Just to let you know, my IDE is not a pure eclipse. It is Springsource tool suite
|
 |
Martijn Verburg
author
Bartender
Joined: Jun 24, 2003
Posts: 3206
|
|
|
The Sonatype plugin is m2eclipse, what version is it at?
|
 |
Kumar Raja
Ranch Hand
Joined: Mar 18, 2010
Posts: 420
|
|
|
The version seem to be 0.10.0.20100209-0800
|
 |
Martijn Verburg
author
Bartender
Joined: Jun 24, 2003
Posts: 3206
|
|
OK, so that's a good start, now if you right-click on the project and go down to the Maven options you should see an update project dependencies and an update project properties. Run those and see what state your project is in then. It _should_ match what is defined in the pom.xml. Then you edit your pom.xml to resolve any errors.
Remember, with this plugin everything is driven from the pom.
|
 |
Kumar Raja
Ranch Hand
Joined: Mar 18, 2010
Posts: 420
|
|
|
Thank you Martijn, your suggestion worked.
|
 |
Martijn Verburg
author
Bartender
Joined: Jun 24, 2003
Posts: 3206
|
|
|
You're welcome!
|
 |
 |
|
|
subject: The specified jre installation does not exist
|
|
|