Yes, I'm running Eclipse on Windows XP.

I modified C:\eclipse\eclipse.ini to the following (and restart Eclipse):

-vm "C:\Program Files\Java\jdk1.5.0_11" -vmargs <...>  and,
-vm "C:\Program Files\Java\jdk1.5.0_11\bin\java.exe" -vmargs <...>

unfortunately I'm still getting the same error!


On 5/25/07, Peter Schröder <[EMAIL PROTECTED]> wrote:
i suppose you are running on windows.

try in your cmd: java --version

this is probably a jre instead of jdk. so eclipse gets started with jre and so 
maven plugin starts maven through jre.

there is a start-parameter for eclipse where you can set the runntime:
-vm "C:\Program Files\Java\jdk1.5.0_11"

-----Ursprüngliche Nachricht-----
Von: hezjing [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 25. Mai 2007 05:09
An: [email protected]
Betreff: [m2eclipse-user] Unable to locate the Javac Compiler

Hi!

I get this error when run package-goal in Eclipse's External Tools:

Unable to locate the Javac Compiler in:
 C:\Program Files\Java\jre1.5.0_11\..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.


JAVA_HOME is  C:\Program Files\Java\jdk1.5.0_11



--

Hez

---------------------------------------------------------------------
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




--

Hez

Reply via email to