Starting using launch files

After you have installed JReport Server, many batch files are automatically generated in <install_root>\bin. They are for assisting you with using and maintaining JReport Server. All of these batch files can be edited to suit different circumstances. However, make sure that you understand their functions when you want to edit them.

The following are the JReport Server launch files.

browser.bat

This tool detects the default client browser and installation path. It is invoked by launchpad.bat.

CmdSender.bat/CmdSender.sh

This tool is for sending commands to JReport Server. If the option "-s" or "-p" is not used, the JVM system property "reporthome" must be defined so that CmdSender.bat/CmdSender.sh will use it to get data from the local machine.

Usage

cmdsender [-s:<server> -p:<port> -u:<user>] -w:<password> shutdown|localshutdown|(local:on|off)

Options

DBMaintain.bat/DBMaintain.sh

This tool is for administrators to back up and restore JReport Server data. It is invoked by the following command line:

Usage

DBMaintain -[?|cleanup|B<[systemtables|realmtables|profiling]:<filename>>|R<[systemtables|realmtables|profiling]:<filename>>]

Options

DJRServer.bat/DJRServer.sh

This tool is used to launch JReport Server with debug and log information. The output log files are in the <install_root>\logs directory. In case of problems, you may run this batch to reproduce the problem. Open the files to see the detail information and find out the problem. Send the log files to support@jinfonet.com if you are unable to resolve the problem.

Usage

DJRServer [-?|-p <port>|-ap <adminport>|-realm <realmname>|-l backlog|-m <max>
|-t <timeout>|-s <filename>|-web <directory>|-env|-silent|
|-local|-vDebug|-vError|-jrs.admin.server <host:port>|-cleanup]

Options

JRServer.bat/JRServer.sh

This tool is used to launch JReport Server in standalone mode without any predefined options.

On Windows, you can start server by double-clicking on JRServer.bat. If you cannot start the server successfully in this way, the reason will be displayed in the MS-DOS command prompt.

Usage

JRServer [-?|-p <port>|-ap <adminport>|-realm <realmname>|-l backlog|-m <max>

|-t <timeout>|-s <filename>|-web <directory>|-env|-silent|

|-local|-vDebug|-vError|-logall|-jrs.admin.server <host:port>|-cleanup]

Options

Notes:

jrenv.bat/jrenv.sh

This tool is for generating the report environment file report.env in the current directory. This file can help the Jinfonet support staff assist you when you run into problems.

launchpad.bat

This tool is used to launch JReport Server in the standalone mode and open the JReport Server Launch Pad page.

makewar.bat/makewar.sh

See here.

MigrationBV52.bat/MigrationBV52.sh

This tool is used to convert all the resources from JReport versions which are lower than V5.2 Build 590 to the resources of JReport Server V8. If you install the new version to the same folder as the old one, the parameter can be omitted.

Usage

MigrationBV52 [orgReportHome]

Options

MigrationV52.bat/MigrationV52.sh

This tool is used to convert all the resources of which the versions are between V5.2 Build 590 (included) and V6 (not included) to the resources of JReport Server V8. If you install the new version to the same folder as the old one, the parameter can be omitted.

Usage

MigrationV52 [orgReportHome]

Options

NJRServer.bat/NJRServer.sh

This tool is used to launch JReport Server without JIT option. If your server often crashes with JIT option, try this batch file instead of JRServer.bat.

Usage

NJRServer [-?|-p <port>|-ap <adminport>|-realm <realmname>|-l backlog|-m <max>

|-t <timeout>|-s <filename>|-web <directory>|-env|-silent|

|-local|-vDebug|-vError|-logall|-jrs.admin.server <host:port>|-cleanup]

Options

register.bat

It is invoked by browser.bat.

RMIAuthFileCreator.bat/RMIAuthFileCreator.sh

This tool is used to generate the rmi authentication file. JReport Server uses the authentication file to secure remote objects. If no argument was provided, an authentication file named "rmi.auth" will be created in <install_root>\bin, using the user ID and install key of JReport Server.

Usage

RMIAuthFileCreator [authFileName [userid key]]

Options

rp.bat/rp.sh

This tool is for replacing user ID and license key.

Usage

rp UID Key

rptconv.bat/rptconv.sh

This tool is for converting old report schema to be current version.

Usage

rptconv "-source=source_path" ["-target=destination_path"] [-r] [-s]

Options

Examples

Notes:

startAdministration.bat

This tool is used to launch the JReport Administration page from the Start menu after the server is started.

startConsole.bat

This tool is used to launch the JReport Console page from the Start menu after the server is started.

stopServer.bat

This tool is used to exit JReport Server from the Start menu.

stopServer.sh

This tool is used to exit JReport Server.