Jump to content
We've recently updated our Privacy Statement, available here ×

How to Display Jasper Report?


anirudh.lou90

Recommended Posts

I created a simple program and add a jasper report on it. My problem now is when I transferred my Deployed Project into another pc my report won't display and only JRE was installed on it and using 1.6 Java Version. It works fine on the pc where i am creating my project. What did I missed? This is the Structured of my deployed project: 

    Mp127
       src
          report
              report1.jasper
              report1.jrxml
       Mp127.jar
       lib //contains all jar files that i am using.

And this is how i invoke my report:

    ...
    jasperDesign = JRXmlLoader.load(new File("").getAbsolutePath() + "/src/report/report1.jrxml");
    jasperReport = JasperCompileManager.compileReport(jasperDesign);
    ...

I am using ireport 4.5.0 plug in for NetBeans and used NetBeans 6.9. Is something wrong with my code? or Do I need to install something to the PC where i put my finish project?

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...