The method of running JasperReports with demo

Source: Internet
Author: User


Related introduction
JasperReports is an open source Java report making engine
Http://jasperreports.sourceforge.net
ireport is a GUI tool for JasperReports to generate JasperReports jrxml files.
Http://ireport.sourceforge.net

Configuration of the running environment
Installation of 1:JDK and Ant and Configuration of environment variables (here we go, I think it's easy to find information)

2: Using ant to compile the example in demo
To the CMD mode, to a directory of sample, such as to
The Jasperreports/demo/samples/alterdesign directory
In step 1:cmd, type ant
will prompt you to compile Java successfully, will generate the. class file

In step 2:cmd, type ant compile
The Jasper file is compiled and the. Jasper file is generated

In step 3:cmd, type ant fill
populating data, generating. jrprint files

Step 4: (partially require this feature) to start a new cmd, type ant or ant runserver in the/demo/hsqldb directory
Start the database, this is where it will stop, so give him a separate cmd. CTRL + C will quit

In step 5:cmd, type ant viewdesign//View the source file interface effect
Ant View//view Run effect

This should see the effect of it, hehe.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.