You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Daniel Rindt <dr...@visetics.com> on 2010/08/18 11:17:45 UTC

maven set wrong JRE version

Hello,

i am using m2eclipse and have installed latest openjdk 1.6. My project
are created with m2eclipse, maven download the dependencies successfully
but after that, eclipse complains with:
= Build path specifies execution environment J2SE-1.4. There are no JREs
installed in the workspace that are strictly compatible with this
environment. =
I can manually switch in the project settings the JRE, but m2eclipse
overwrites it after a while.

How to fix it? 

Thanks in advance
-- 
Daniel Rindt <dr...@visetics.com>
Visetics

Re: maven set wrong JRE version

Posted by Anders Hammar <an...@hammar.net>.
I think this is more of a question for the m2e user list, but the target and
source param of the compiler plugin do work (I use it on both Windows and
MacOS with Eclipse 3.5.x). For the latest versions of the plugin, 1.5 is
even the default. Do you have the latest version of m2e?

/Anders

On Wed, Aug 18, 2010 at 12:45, Daniel Rindt <dr...@visetics.com> wrote:

> Am Mittwoch, den 18.08.2010, 12:21 +0200 schrieb Thorsten Heit:
> > See here:
> >
> http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html
>
> Thanks for cluing me. I haven't recognized this section.
> Brett the solution to switch it in eclipse project settings is not
> solving the problem. Because maven is immediately resitting it on a
> workspace rebuild.
>
> Thanks
> --
> Daniel Rindt <dr...@visetics.com>
> Visetics
>

Re: maven set wrong JRE version

Posted by Daniel Rindt <dr...@visetics.com>.
Am Mittwoch, den 18.08.2010, 12:21 +0200 schrieb Thorsten Heit:
> See here:
> http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html 

Thanks for cluing me. I haven't recognized this section. 
Brett the solution to switch it in eclipse project settings is not
solving the problem. Because maven is immediately resitting it on a
workspace rebuild.

Thanks
-- 
Daniel Rindt <dr...@visetics.com>
Visetics

Re: maven set wrong JRE version

Posted by Thorsten Heit <th...@gmx.de>.
Hi Daniel,

> i am using m2eclipse and have installed latest openjdk 1.6. My project
> are created with m2eclipse, maven download the dependencies successfully
> but after that, eclipse complains with:
> = Build path specifies execution environment J2SE-1.4. There are no JREs
> installed in the workspace that are strictly compatible with this
> environment. =
> I can manually switch in the project settings the JRE, but m2eclipse
> overwrites it after a while.
> 
> How to fix it? 

See here:
http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html


Regards

Thorsten

Re: maven set wrong JRE version

Posted by Brett Randall <ja...@gmail.com>.
I've not used openjdk for a while, but worth checking your Eclipse
setting for Java -> JREs -> Execution Environments (typed from memory)
and make sure that your 1.6 openjdk JDK is registered/linked as an
execution environment JRE for 1.6.

Brett


On 8/18/10, Daniel Rindt <dr...@visetics.com> wrote:
> Hello,
>
> i am using m2eclipse and have installed latest openjdk 1.6. My project
> are created with m2eclipse, maven download the dependencies successfully
> but after that, eclipse complains with:
> = Build path specifies execution environment J2SE-1.4. There are no JREs
> installed in the workspace that are strictly compatible with this
> environment. =
> I can manually switch in the project settings the JRE, but m2eclipse
> overwrites it after a while.
>
> How to fix it?
>
> Thanks in advance
> --
> Daniel Rindt <dr...@visetics.com>
> Visetics
>

-- 
Sent from my mobile device

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org