java – Importing DynamicJasper: what am I doing wrong?

Stack Overflow! Long time lurker, first time poster. Can you help me with this silly beginner error?

I am trying to play with Dynamic Jasper, a third party Java API. I am using Eclipse & Maven.

Right now I’m just trying to ensure that the API can be imported in my code. I grabbed the XML off the Maven Repository page, and copied a file line-for-line directly off Dynamic Jasper’s website, but it has compiler errors. What am I doing wrong?

First I copied this XML off the Maven Repository page for Dynamic Jasper, and pasted it into a Maven Project’s pom.xml file in Eclipse

Then I right clicked on the Maven project in Eclipse and selected “Run As Maven Build”

Then I copied this off the Dynamic Jasper website and pasted it into a Java file in my project.

Unfortunately here’s the part where I am stuck. The code cannot compile. I think I’m missing a piece of the API, and I don’t know how to fix it, or what is missing. Screenshots are attached. Can you help?

First Error:

First Error - Screenshot

Second Error:

Second Error - Screenshot

Third Error:

Third Error - Screenshot

Thanks for reading! Hopefully someone can save the day here.

Read more here: Source link