Ask Your Question

after importing the existing maven project i got the following error

asked 2014-10-23 05:26:57 -0700

jayakeerthi gravatar image

1) followed steps in wiki 2)build ed before importing into the eclipse

ERROR - [INFO] opendaylight-configfile-archetype ................. SKIPPED [INFO] archetypes-parent ................................. SKIPPED [INFO] distribution-karaf-archetype ...................... SKIPPED [INFO] opendaylight-karaf-features-archetype ............. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 23.544 s [INFO] Finished at: 2014-10-23T17:45:54+05:30 [INFO] Final Memory: 143M/535M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project sal: Fatal error compiling: tools.jar not found: C:\Program Files\Java\jre7..\lib\tools.jar -> [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] [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :sal</goals>

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-10-24 05:52:38 -0700

mawil gravatar image

updated 2014-10-24 05:53:06 -0700

The error occurs when you have installed a JRE instead of a JDK or JAVA_HOME variables is not set correctly. So please check if you installed a Java-JDK, if it is installed check your environment variables.

Your log output says that you are using windows. You can check/set your environment variables in Windows under "Control panel" > "Advanced System Settings" > "Advanced" > "Environment Variables". In the appearing Window you can ensure that your environment variables are pointing to the correct locations:

  • JAVA_HOME: C:\Program Files\Java\jdk(version)
  • JRE_HOME: C:\Program Files\Java\jre(version)
edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower


Asked: 2014-10-23 05:26:57 -0700

Seen: 1,746 times

Last updated: Oct 24 '14