Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven Build error TOOLS.JAR NOT FOUND IN JRE

Tags:

maven

build

I am getting this problem while building maven project .. please help me out..

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project Subs_Engine: Fatal error compiling: tools.jar not found: C:\Program Files\Java\jre7\..\lib\tools.jar -> [Help 1]
like image 815
vishal Avatar asked Nov 17 '14 12:11

vishal


1 Answers

If you're getting this in eclipse make sure that Eclipse is pointing to a JDK and Not a JRE.

In Eclipse navigate to Window->Preferences->Java->Installed JRES- Add... Standard VM and point Directory... to a JDK. You'll obviously need to install a JDK if you have not done so.

like image 166
Antman06 Avatar answered Sep 26 '22 00:09

Antman06