Jump to content
  • Running JasperReports Server Bundled Installer in Silent Mode


    Steve Park
    • Version: v6.2, v6.2.2, v6.2.1, v6.2.0, v6.1, v6.1.1, v6.1.0, v6.0, v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v5.6, v5.6.2, v5.6.1, v5.6.0 Product: JasperReports® Server

    Introduction

    JasperReports Server bundled installers install bundled Apache Tomcat, PostgreSQL servers, and PhantomJS.  Normally, these installers run in either graphical or text-based menu mode.  However, it's possible to install JasperReports Server silently using an options file.  This install mode can be particularly helpful when used as part of another product installation.

    Step-by-Step instructions

    1. Open a text editor and add the following lines:

      mode=unattended
      installer-language=en
      jasperLicenseAccepted=yes
      prefix={path to install location e.g. C:\jrs63 or /opt/jrs63}
      
    2. Save the file as options.txt or whatever file you wish and close the text editor

    3. Open a command line window and browse to where the installer has been saved

    4. Run the following command:

      Windows:

      jasperreports-server-{version}-windows-x64-installer.exe --optionfile options.txt
      

      Linux:

      ./jasperreports-server-{version}-linux-x64-installer.run --optionfile options.txt
      

    Result

    JasperReports Server will install silently then exit.  The server will need to be started separately.  To do so, execute the ctlscript.sh or ctlscript.bin file with the start option.


    Additional Information

    To see a list of available options, run the installer from the command line with the --help option.

    An example with additional options may look as follows:

    mode=unattended
    installer-language=en
    jasperLicenseAccepted=yes
    prefix={path to install location e.g. C:\jrs63 or /opt/jrs63}
    postgres_installation_type=bundled
    postgres_locale=en
    postgres_port=5432
    postgres_password=<postgres password>
    tomcat_installation_type=bundled
    tomcat_server_port=8080
    tomcat_server_shutdown_port=8005
    tomcat_server_ajp_port=8009
    phantomjs_installation_type=bundled
    jasperserver_install_sampledata=1
    

    User Feedback

    Recommended Comments

    In case the following message appears on linux: sudo: ./TIB_js-jrs_7.1.1_linux_x86_64.run: command not found

    execute sudo chmod +x  ./TIB_js-jrs_7.1.1_linux_x86_64.run and then run the file

    Link to comment
    Share on other sites

    Trying to install jasperreports using silent file and shell script  but it wont works, because after the jasperreports installation the below options are shown

    Opt-in for JasperReports Server Heartbeat
    Help us build better products by opting in  [Y/n]:

    Setup has finished installing JasperReports Server CP 7.2.0 on your computer.

    ctrl+c is the only solution in the manual installation,but how to overcome this in the silent file.. can someone help please..
     

    Thanks in advance..

     

    My silentfile ...

    mode=unattended
    installer-language=en
    jasperLicenseAccepted=yes
    prefix=/home/jasperreports-server-cp_7.2.0

    anything need to add..

    Link to comment
    Share on other sites



    Guest
    This is now closed for further comments

×
×
  • Create New...