Sending commands to JReport Server from Java

After JReport Server has been started as a standalone server, you can send commands to the server to either shut it down or pop up the user interactive interface for administration. All of these can be done through the class jet.server.CommandSender. The full command is as follows:

JAVA -classpath <classpath> -Djava.compiler=NONE [-Dreporthome=<install_root>] jet.server.CommandSender [-s:server -p:port] -w:password [-?]|admin|shutdown|gc|(local:on|off)

Note: Some of the common options will be used in the later chapters. In addition, JReport has automatically generated the batch file CmdSender.bat for you so that you do not have to write a complicated command line.