Page 1 of 1

jdk 1.6 Problem

Posted: Mon Dec 09, 2013 9:07 am
by RajuYadav
Hi
for the first time i am trying install and use broadleaf but its giving from with jdk1.6 , actually i have jdk 1.7 and i am getting error like

Failed to execute goal on project core: Could not resolve dependencies for project com.mycompany:core:jar:1.0: Could not find artifact jdk.tools:jdk.tools:jar:1.6 at specified path C:\Program Files\Java\jre7/../lib/tools.jar ->

how to solve this error

Re: jdk 1.6 Problem

Posted: Sat Dec 14, 2013 11:29 am
by swapnil
Add this to pom.xml in admin, core and site

<dependency>
<groupId>jdk.tools</groupId>
<artifactId>jdk.tools</artifactId>
<version>1.7.0_05</version>
<scope>system</scope>
<systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>
</dependency>

Re: jdk 1.6 Problem

Posted: Mon Jan 13, 2014 5:28 am
by chucks
An alternate way could be to add this jar to your maven repository, like following:

Code: Select all

mvn install:install-file -DgroupId=jdk.tools -DartifactId=jdk.tools -Dpackaging=jar -Dversion=1.6 -Dfile=tools.jar -DgeneratePom=true