It looks like the java version running is the JRE and not the JDK, hence no compiler. ": C:\Program Files\Java\jre7 "
If you have a JDK installed, change the JAVA_HOME environment variable to point at the JDK instead. If not installed, you can install the JDK and update the JAVA_HOME then.
Chris Snider
Senior Software Engineer
Intelligent Software Solutions, Inc.
Direct (719) 452-7257
-----Original Message-----
From: Oscar Cano R [mailto:ocr.caro69@…403…]
Sent: Friday, May 09, 2014 9:32 AM
To: Ben Caradoc-Davies; Andrea Aime
Cc: Geoserver-devel
Subject: Re: [Geoserver-devel] Error in "mvn clean install"
This is the result
mvn -version
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9;
2014-02-14T11:37:52-06:00)
Maven home: C:\Program Files (x86)\ApacheSF\apache-maven-3.2.1 Java version: 1.7.0_51, vendor: Oracle Corporation Java home: C:\Program Files\Java\jre7 Default locale: es_MX, platform encoding: Cp1252 OS name: "windows 8", version: "6.2", arch: "amd64", family: "windows"
El 09/05/2014 01:40 a. m., Ben Caradoc-Davies escribió:
On 09/05/14 14:09, Andrea Aime wrote:
On Fri, May 9, 2014 at 1:29 AM, Oscar Cano R <ocr.caro69@...403...
<mailto:ocr.caro69@…403…>> wrote:
Good afternoon, I'm starting to try to work with the code,
everything works fine for me 2.2.x branch, but when I work with
branch 2.4.x, when running the command "mvn clean install" gives me
the following error. (attached file)
What am I doing wrong?
It seems the compiler is not found:
[WARNING] Unable to autodetect 'javac' path, using 'javac' from the
environment.
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Failure executing javac, but could not parse the error:
"javac" no se reconoce como un comando interno o externo, programa o
archivo por lotes ejecutable.
Did you setup your JAVA_HOME correctly?
Anyways, in branch 2.4.x I believe all developers already switched to
maven 3, that might be a factor too (and oh, the branch is supposed
to be built with java 6)
Oscar, please also check that you have a JDK installed, not just a JRE
(which lacks the compiler). I do not know why 2.2.x works; did you use
the same maven and java?
Try:
mvn -version
to discover the maven and java version used in your current environment.
Kind regards,
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity • Requirements for releasing software faster • Expert tips and advice for migrating your SCM now http://p.sf.net/sfu/perforce _______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel