JReport Designer is the report design tool. Developed reports are save as .cls files for running in distributed environments. You can deploy your resources about reports or catalog and so on from JReport Designer to your machine or to our JReport Enterprise Server.
JReport Designer supports you to deploy your resources to any directory in your machine or over your intranet, that is deploying resources locally. A tool named Deployment Wizard is provided when you deploy resources locally. You can run it both in JReport Designer or running it as an independent application.
To do so,
- Launch JReport Designer, in the File menu, select Deploy to, and then click Local Directory. The Deployment Wizard pops up.
- On the Deployment Wizard, click the Browse button to select a catalog and all the reports of the specified catalog will be displayed in the Selected Report list.
You can also type the catalog name with its full path directly into the From Catalog text box, and then press ENTER.- Select reports that you want to deploy from the Select Report list and click the arrow button to add them to the right list. Or directly drag them to the right list.
Note: If no report is selected here, only the catalog will be deployed.- Specify a directory for the catalog and reports to be deployed.
Click the Browse button to the right of the To Local Directory text box, and find a directory on the Get Directory dialog.
You can also type the directory in the text box directly. You are allowed to type a directory which does not exist, and JReport Designer will created it automatically.- Click Next to modify the properties of the connection.
You can select a data source from the Catalog Data Source drop-down list, and the connection properties of the selected data source are displayed.
If you want to change the property values, click Modify, the Get JDBC Connection Information dialog appears for you to modify the properties.- Click the Finish button to deploy the catalog and reports.
To do so, please use the following command line:
java -Dreporthome=<home> -classpath path deployment.DeployWizard [-options]
Where<home>refers to the path where your JReport product containing the Deployment package is installed. For example, if your deployment package is included in your JReport Designer Edition, and you installed this edition in c:\JReport, then the<home>should bec:\JReport.where
-classpathpath tells the Java interpreter the classpath. Usually you should append the JReport Designer lib path to the Java classpath. E.g., if the JReport Designer was installed atc:\JReport, then this parameter should look like:
-classpath c:\jreport\lib\report.zip;c:\jreport\lib\DeployToEntS.zip;c:\jreport\lib\JREngine.zip;c:\jreport\lib\resource.zip;c:\JReport\lib\log4j-1.2.8.jarand where [-options] includes:
- -help - Print the help message about the usage of [-options].
- -c<:filename> - Specify the catalog you want to deploy.
- -vDebug - Enable the output of debug messages. This option is available only when your product version is a debug version.
- -vError - Enable the output of error messages. This option is available only when your product version is a debug version.
To deploy your resources to JReport Enterprise Server,
- Launch JReport Designer, on the File menu, select Deploy to, and then click JReport Enterprise Server. The Connect dialog appears.
- This dialog is used to connect to JReport Enterprise Server.
Type in the host of remote web server in the Host text box.
Type in the port of the server in the Port text box.
Type in/jrserverin the Servlet Path text box. Since JReport Enterprise Server version 6.0, the JSP is enabled by default, therefore, you should use/jrserverin the URL to access the servlet.
If the server is integrated with another web server which supports SSL, you can select the SSL (Security Socket Layer) check box to create a SSL connection.
Check Remember connection information to make JReport Designer remembers the connection information.
Provide the user name and password of the server.
Select the check box Remember connection information- Click Connect, and the Deployment Settings dialog appears.
- In the Deploy Resource To text box, specify the directory on the server for the resources that will be deployed. Use the default location (the My Reports node in the server resource tree) or click the Browse button to specify a location in the server.
- From the Resource Type drop-down list, select a type for the resource that will be deployed. Options are as follows:
- Report
Only deploy a report.- Catalog
Only deploy a catalog.- Folder
Deploy a folder whose name can be specified in the text box below.- Folder with Contents
Deploy a folder and all resources in the folder.- Catalogs, Reports and Folders in Folder
Deploy resources in a folder.- Catalogs and Reports in Folder
Deploy catalogs and reports in a folder.- After you have selected the resource type, click the Browse button to find the directory where your resources located, or type in the directory. Click the Load Tree button to load the resources under that directory in the panel below.
- If you are deploying resources to a local server, please check Deploy from local directory.
- In the panel, select the check boxes in front of the resources that you want to deploy.
- On the Properties tab,
Specify a name which will be displayed in the server resource tree for the selected resource in the panel. Type a name in the text box or click the Browse button, the Select Resource Name dialog will pop up. All the resources names with the same type as the selected resource under the Deploy Resource To path are displayed on the dialog. You can select one of them.
In the Description text box, type a brief description to describe the resource to be deployed.
If you a folder is selected, type a real path in the Real Path box. If no path is specified, default path will be used.If you are deploying a folder in the cluster environment, please make sure you check the Map Shared Disk option, the folder will be mapped instead of be copied.
Check Archive Policy to apply archive policy to the resource to be deployed.On the Permissions tab, check Enable user permission to specify permissions to the selected resource.
Note: If you are deploying resources to My Reports, this tab is disabled.The Connection tab is only available when a catalog is selected. You can modify the properties of the connection and after modification, please click the Apply button to save the changes.
- Click the Submit button to deploy the resources to server. If the resource that you are deploying contain reports that use style groups or have special fonts, a dialog named Deploy Font and Style will pop up for you to specify them.