This is an old revision of the document!


In this section we will perform several procedures with jasper reports and observer several situations.

Before we start, be sure to install ANT package:

Install ANT

[root@TainBITestnewTrial ~]# yum install ant
Last metadata expiration check: 0:52:58 ago on Fri 23 Apr 2021 08:38:07 AM UTC.
Dependencies resolved.
==============================================================================================================================
 Package                       Arch     Version                             Repository                                   Size
==============================================================================================================================
Installing:
 ant                           noarch   1.10.5-1.module+el8+2438+c99a8a1e   rhel-8-for-x86_64-appstream-eus-rhui-rpms   193 k
Installing dependencies:
 ant-lib                       noarch   1.10.5-1.module+el8+2438+c99a8a1e   rhel-8-for-x86_64-appstream-eus-rhui-rpms   2.0 M
 copy-jdk-configs              noarch   3.7-1.el8                           rhel-8-for-x86_64-appstream-eus-rhui-rpms    27 k
 giflib                        x86_64   5.1.4-3.el8                         rhel-8-for-x86_64-appstream-eus-rhui-rpms    51 k
 java-1.8.0-openjdk            x86_64   1:1.8.0.292.b10-0.el8_2             rhel-8-for-x86_64-appstream-eus-rhui-rpms   328 k
 java-1.8.0-openjdk-devel      x86_64   1:1.8.0.292.b10-0.el8_2             rhel-8-for-x86_64-appstream-eus-rhui-rpms   9.8 M
 java-1.8.0-openjdk-headless   x86_64   1:1.8.0.292.b10-0.el8_2             rhel-8-for-x86_64-appstream-eus-rhui-rpms    34 M
 javapackages-filesystem       noarch   5.3.0-1.module+el8+2447+6f56d9a6    rhel-8-for-x86_64-appstream-eus-rhui-rpms    30 k
 javapackages-tools            noarch   5.3.0-1.module+el8+2447+6f56d9a6    rhel-8-for-x86_64-appstream-eus-rhui-rpms    44 k
 libfontenc                    x86_64   1.1.3-8.el8                         rhel-8-for-x86_64-app

Otherwise, you will recieve the following error:

Without ANT

[root@TainBITestnewTrial ~]# /opt/jasperreports-server-7.9.0/buildomatic/js-export.sh --everything --output-zip jasperReports.zip
WARNING: No bundled Ant found (../apache-ant or ../../apache-ant). Using system Ant
/opt/jasperreports-server-7.9.0/buildomatic/js-ant: line 41: ant: command not found

And be sure to run the command from the script's location (e.g. /opt/jasperreports-server-7.9.0/buildomatic/ in my case)

Sometimes, when we migrate a jasper server, we will want to export our reports and schedules. To do that, we can use either:

  • Web interface
  • Command line

Let's do it with Command Line:

We can export all content as follows:

Export

js-export --everything --output-zip myExport.zip

That command will export all the content: roles, reports, users, etc.

Now to import it back, use the following command:

Import

js-import --input-zip myExport.zip

Both of these scripts are located at:

Windows:

<js-install>\buildomatic\js-import.bat

<js-install>\buildomatic\js-export.bat

Linux:

<js-install>/buildomatic/js-import.sh

<js-install>/buildomatic/js-export.sh

  • tibco_jasper_management.1619170460.txt.gz
  • Last modified: 2021/04/23 09:34
  • by andonovj