Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » mvn install failing due to dependency com.sun:tools:jar:1.8.0(mvn clean install - failing Could not find artifact com.sun:tools:jar:1.8.0)
mvn install failing due to dependency com.sun:tools:jar:1.8.0 [message #1779774] Fri, 12 January 2018 12:20 Go to next message
Mandar Deshmukh is currently offline Mandar DeshmukhFriend
Messages: 1
Registered: January 2018
Junior Member
I followes instruction provided on https://www.eclipse.org/smarthome/documentation/development/ide.html to setup my IDE. All worked well except last step i.e.

command - mvn clean install

Getting following error -
[ERROR] Failed to execute goal org.openhab.tools:static-code-analysis:0.3.0:checkstyle (default) on project org.eclipse.smarthome.core: Execution default of goal org.openhab.tools:static-code-analysis:0.3.0:checkstyle failed: Plugin org.openhab.tools:static-code-analysis:0.3.0 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:1.8.0 at specified path C:\Program Files\Java\jre1.8.0_152/../lib/tools.jar -> [Help 1]

Appreciate any help to get this resolved.
Re: mvn install failing due to dependency com.sun:tools:jar:1.8.0 [message #1779818 is a reply to message #1779774] Sat, 13 January 2018 08:11 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29187
Registered: July 2009
Senior Member
Their community page points at a https://www.eclipse.org/forums/index.php?t=thread&frm_id=271 as their discussion forum, so likely better to ask there.
Re: mvn install failing due to dependency com.sun:tools:jar:1.8.0 [message #1779823 is a reply to message #1779774] Sat, 13 January 2018 15:49 Go to previous message
David Wegener is currently offline David WegenerFriend
Messages: 1406
Registered: July 2009
Senior Member
It looks like you are running Eclipse using a JRE. JREs don't include the tools.jar file. You have to install a full JDK in order to get the tools.jar file. You will also likely have to specify that Eclipse runs on the JDK not the JRE.
Previous Topic:NullPointerException when dragging tab to a new location with custom perspectives
Next Topic:How to run c++ in eclipse oxygen 2?
Goto Forum:
  


Current Time: Wed Feb 21 08:10:59 GMT 2018

Powered by FUDForum. Page generated in 0.03307 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software