Getting ClassNotFoundException error running LeanFT Maven test
Question ID: 108050
2
0

I am trying to run LeanFT tests that were created in Eclipse as a Maven project. I am getting the following error and haven’t been able to figure out the cause:

java.lang.NoClassDefFoundError: com/hp/lft/reportbuilder/ReportBuilder
Caused by: java.lang.ClassNotFoundException: com.hp.lft.reportbuilder.ReportBuilder

Marked as spam
Posted by (Questions: 387, Answers: 66)
Asked on December 27, 2017 8:30 pm
343 views
Answers (1)
2
Private answer

Looks like you're missing the

com.hp.lft.reportbuilder-standalone.jar
file as a dependency.

To add the dependency, execute the following command:

mvn install:install-file -Dfile=''C:Program Files (x86)HPUnified Functional TestingSDKJavacom.hp.lft.reportbuilder-standalone.jar'' -DgroupId=''com.hp.lft'' -DartifactId=''reportbuilder'' -Dversion=14.0.0 -Dpackaging=JAR -DgeneratePom=true

and then add the following dependency in the POM file:


com.hp.lft
reportbuilder
14.0.0

Marked as spam
Posted by (Questions: 17, Answers: 807)
Answered on December 27, 2017 8:30 pm
0
Thanks that helped!
( at December 27, 2017 8:31 pm)
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top