I have a work around for this but it is ugly.

I started with this config:
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
-framework
plugins\org.eclipse.osgi_3.4.0.v20080605-1900.jar
-vm
C:\Program Files\Java\jdk1.6.0_06\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms512m
-Xmx1024m

M2eclipse still complained about a JRE 1.6 path, so I changed to jdk1.5 in 
eclipse.ini as a test. Still the same result.

I then changed to use jdk1.5 but with java.exe instead of javaw.exe. I noticed 
that eclipse then started with a command window - so it was using the java.exe 
in eclipse.ini. I also checked the "about eclipse platform"->configuration 
details and it all indicated jdk1.5. Yet m2eclipse STILL complained about a 
JDK1.6 path.

Finally I had a look in window->preferences->installed JREs. I had the jdk1.6 
and jre1.6. Only jdk1.6 was ticked. I removed jre1.6 even though it wasn't 
ticked and now it works!

So is this a problem with the m2eclipse plugin rather than eclipse?

Thanks,
Andrew

-----Original Message-----
From: Eugene Kuleshov [mailto:[email protected]]
Sent: Thursday, 15 January 2009 12:45 AM
To: [email protected]
Subject: Re: [m2eclipse-user] Unable to locate the Javac

Andrew,

Please make sure that you have JDK installed and that your eclipse.ini
look exactly like one from that FAQ entry, i.e. line breaks are
significant there. Also note that -vmargs should be the last argument in
eclipse.ini and in the command line (e.g. order is significant).

regards,
Eugene


Andrew Zahra wrote:
>
> I have this problem as described in the project FAQ:
>
> http://docs.codehaus.org/display/M2ECLIPSE/Project+FAQ#ProjectFAQ-UnabletolocatetheJavacCompilerError
>
> The only solution that works for me is using the eclipse compiler. I
> was hoping to use the JDK compiler. Does anyone have any advice on this?
>
> I am using eclipse 3.4 on Windows and have tried both updating the
> eclipse.ini and using the -vm argument to eclipse to point to the JDK.
>
> Andrew
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to