Procedure: While installing the JasperReports Server if you run into the Error running initdb.exe error as shown in Figure 1, that means your Windows user account does not have local administrator privileges.
Resolution: During the process of installing and setting up the database, PostgreSQL is installed in the server you logged in to. The initdb.exe file is executed as part of the installation that builds and deploys the repository database for use by JasperReports Server. To overcome this error, log on to the server using local administrator privileges and install the PostgreSQL database.