Never mind, I was pointing to a jre, not the jdk.

Thanks,

Hector

-----Original Message-----
From: Urroz, Hector (Hector) [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 07, 2007 2:24 PM
To: users@maven.apache.org
Subject: Unable to locate the Javac Compiler error with cygwin

I'm running 'mvn compile' on cygwin and am getting the following:

 

Unable to locate the Javac Compiler in:

  c:\Program Files\Java\jre1.6.0_01\..\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.

 

My JAVA_HOME is set to

     cygdrive/c/Program Files/Java/jre1.6.0_01

 

and lib/tools.jar is there (as is javac.Main), but it appears that mvn
is looking in the wrong place, since the error message says
../lib/tools.jar

 

Any ideas what might be wrong?

 

Thanks much,

 

Hector

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to