Jasper Reports – Cannot find report

Posted on

Jasper Reports – Cannot find report – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, , , , .

I am running Jasper Reports with Apache Ant. When I go to generate a sample report into a pdf I run this:

root@server~$ /home/user/apache-ant-1.8.2/bin/ant pdf
Buildfile: /home/user/jasperreports-4.0.2/demo/samples/table/build.xml

pdf:

pdf:
     [java] Exception in thread "main" java.lang.NoClassDefFoundError: TableApp
     [java] Java Result: 1

BUILD SUCCESSFUL
Total time: 1 second

The problem is, I cannot find where that PDF went to, if the file even converted into a PDF at all, really. I ran the “find” command and no luck. This is a demo report called “Table” in the Jasper Report’s demo directory. The build.xml file in the sample reports directory has this:

<target name="pdf" description="Generates a PDF version of the report by converting the .jrprint file.">
    <ant dir="../" target="pdf"/>
</target>

That tells me that it should convert this report into PDF and shoot the file to the parent directory. I made a directory called PDF and use absolute path to shoot it there and all that it did was shoot a build.xml file with no data to it…

The PDF is nowhere to be found. What I am missing here?

Thanks for any help, the jasperforge forum isn’t responding to my thread. I don’t think this is a very complex problem, so hopefully I can get some help… this is my last step with Jasper!

Thanks again.

Solution :

Run the report with strace (or ltrace, if you’re into that sort of thing) watching the calls to open — somewhere along there it’ll have to open the file for your PDF (assuming it’s actuallly writing one, but at least you’ll know one way or the other).

Leave a Reply

Your email address will not be published. Required fields are marked *