Maven Eclipse Error Unable To Locate The Javac Compiler In
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company not a jre (the com.sun.tools.javac.main class is required). Business Learn more about hiring developers or posting ads with us Stack Overflow Questions unable to locate the javac compiler in ubuntu Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, unable to locate the javac compiler in linux just like you, helping each other. Join them; it only takes a minute: Sign up Maven unable to locate Javac Compiler - Unable to locate the Javac Compiler in: up vote 4 down vote favorite 1 unable to locate the javac compiler in jenkins When I try to make maven-install on my gwt-maven Projekt i get this Error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project MyProject: Compilation failure [ERROR] Unable to locate the Javac Compiler in: [ERROR] C:\Development\java jre7\..\lib\tools.jar [ERROR] Please ensure you are using JDK 1.4 or above and [ERROR] not a JRE (the com.sun.tools.javac.Main class is required). [ERROR] In most cases you can change the location of your Java [ERROR] installation by setting the
Tools.jar Download
JAVA_HOME environment variable. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException But JAVA_HOME is set. When I run cmd "echo %JAVA_HOME%" it says C:\Development\jdk7 and this is correct. Dont know why he is searching for C:\Development\java jre7..... java maven m2e share|improve this question edited Apr 29 '15 at 12:26 Ripon Al Wasim 16.5k2287118 asked Jan 5 '13 at 16:12 user1882812 4222831 Have you made settings in mavenrc.bat ? Have you restarted the cmd exe after changing the JAVA_HOME on Windows ? –khmarbaise Jan 5 '13 at 16:20 no. i havent made settings in mavenrc.bat. and no i havent restartet because JAVA_HOME is set since... i dont know ... long time ago ^^ –user1882812 Jan 5 '13 at 16:22 Maybe try using a newer version of the maven-compiler-plugin? –Thomas Broyer Jan 5 '13 at 16:42 2 m2e has problems with pathnames with whitespace, I believe. –bmargulies Jan 5 '13 at 17:46 1 Retagged with m2e. It would have been easier and good practice if you update your question
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About
Invalid Cen Header (bad Signature)
Us Learn more about Stack Overflow the company Business Learn more about hiring tools.jar not found developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the no compiler is provided in this environment. perhaps you are running on a jre rather than a jdk? Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Maven unable to locate Javac Compiler http://stackoverflow.com/questions/14173644/maven-unable-to-locate-javac-compiler-unable-to-locate-the-javac-compiler-in - Unable to locate the Javac Compiler in: up vote 4 down vote favorite 1 When I try to make maven-install on my gwt-maven Projekt i get this Error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project MyProject: Compilation failure [ERROR] Unable to locate the Javac Compiler in: [ERROR] C:\Development\java jre7\..\lib\tools.jar [ERROR] Please ensure you are using JDK 1.4 or above and [ERROR] not a JRE http://stackoverflow.com/questions/14173644/maven-unable-to-locate-javac-compiler-unable-to-locate-the-javac-compiler-in (the com.sun.tools.javac.Main class is required). [ERROR] In most cases you can change the location of your Java [ERROR] installation by setting the JAVA_HOME environment variable. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException But JAVA_HOME is set. When I run cmd "echo %JAVA_HOME%" it says C:\Development\jdk7 and this is correct. Dont know why he is searching for C:\Development\java jre7..... java maven m2e share|improve this question edited Apr 29 '15 at 12:26 Ripon Al Wasim 16.5k2287118 asked Jan 5 '13 at 16:12 user1882812 4222831 Have you made settings in mavenrc.bat ? Have you restarted the cmd exe after changing the JAVA_HOME on Windows ? –khmarbaise Jan 5 '13 at 16:20 no. i havent made settings in mavenrc.bat. and no i havent restartet because JAVA_HOME is set since... i dont know ... long time ago ^^ –user1882812 Jan 5 '13 at 16:22 Maybe try using a newer version
Certification Databases Caching Books Engineering Languages Frameworks Products This Site Careers Other all forums Forum: IDEs, https://coderanch.com/t/557690/vc/Eclipse-Maven-project-Unable-locate Version Control and other tools Eclipse Maven project: Unable to locate the Javac Compiler Dave Alvarado Ranch Hand Posts: 436 posted 4 years ago Hi, I'm http://www.web0.at/unable-to-locate-the-javac-compiler-in-eclipse-and-maven-solved/ using Eclipse Indigo on Win XP, Maven 3.0.3 and I have just built a Maven-GWT project using GWT 2.4 and the gwt-maven-plugin. Despite the fact that unable to I have pointed my Eclipse JDK to what I have installed -- http://screencast.com/t/7TYkFh8rcObL, I'm still getting this error when I right click on my project and select the "Maven Install" option ... [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building GWT Maven Archetype 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- gwt-maven-plugin:2.4.0:i18n (default) unable to locate @ samplemavengwt --- [INFO] [INFO] --- gwt-maven-plugin:2.4.0:generateAsync (default) @ samplemavengwt --- [INFO] [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ samplemavengwt --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ samplemavengwt --- [INFO] Compiling 1 source file to C:\Documents and Settings\E18538\workspace\samplemavengwt\target\samplemavengwt-1.0-SNAPSHOT\WEB-INF\classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] Unable to locate the Javac Compiler in: C:\Program Files\Java\jre6\..\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. [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.328s [INFO] Finished at: Thu Nov 03 10:31:40 CDT 2011 [INFO] Final Memory: 5M/15M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project samplemavengwt: Compilation failure [ERROR] Unable to locate the Javac Compiler in: [ERROR] C:\Program Files\Jav