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

Reply via email to