![]() I tried the command mvn -v and I found the maven home (D:\apache-maven-3.1.1) so it is normal but the surprise was for java home (C:\Program Files\Java\jdk1.8.0_73\jre). Re-run Maven using the -X switch to enable full debug logging. Failed to execute goal :maven-compiler-plugin:2.5.1:compile (default-compile) on project myapp: Fatal error compiling: tools.jar not found: C:\Program Files\Java\jre1.8.0_91.\lib\tools.jar -> To see the full stack trace of the errors, re-run Maven with the -e switch. ![]() Perhaps you are running on a JRE rather than a JDK?īut when i replace it by maven-resources-plugin, than I get this error: Failed to execute goal :maven-compiler-plugin:3.1:compile (default-compile) on project myapp: Compilation failure No compiler is provided in this environment. ![]() This is the first error when i use the maven-compile-plugin in my file pom.xml as shown in the image Sometimes I have in the error message that tools.jar is missing and sometimes I get other error that mentions that maybe I'm using a JRE not a JDK (but I'm sure that I'm pointing the JDK). So I, tried to point my JDK through eclipse as follows: window->preferences->java->installed JREs, and I have chosen the JDK too but this solution didn't work either, so I decided to fix it using cmd : set JAVA_HOME="C:\Program Files\Java\jdk1.8.0_73"Īnd I checked java -version and the result was jdk1.8.0_73 so I thought that all was alright but it wasn't. So, I tried without "\bin" as follows "C:\Program Files\Java\jdk1.8.0_73" but nothing new. I fixed JAVA_HOME system variable giving it the path to my JDK and not to the JRE as follows: Name:JAVA_HOME, value:C:\Program Files\Java\jdk1.8.0_73Īnd I added this string to PATH variable "C:\Program Files\Java\jdk1.8.0_73\bin", but it didn't work. I'm trying to build a spark application with maven in eclipse but I got a compilation failure.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |