Although not required for P6, precompilation helps to reduce the amount of time it takes for users to load P6 pages for the first time. The following instructions apply to all application servers supported by P6 EPPM. You need to perform these instructions while the application server is running.
Note: Your application server must be listening on a HTTP port (non-SSL) for the precompile utility to work. You can later disable the HTTP port after precompilation if you will be using only HTTPS.
To precompile P6:
- Locate the precompile_utility folder. It will be in the location where you installed P6 EPPM. For example:
- C:\P6EPPM_1\p6\precompile_utility (with Windows)
- /usr/P6EPPM_1/p6/precompile_utility (with UNIX or Linux)
- Run a command similar to the following:
java -jar JSPPrecompile.jar -u <baseURL> -f <inputfile>
where
<baseURL>
is the P6 URL and<inputfile>
is the location of the P6 EAR file.Note: The file path of the P6 EAR file cannot contain spaces.
For example, the command should look similar to the following if you have a standard P6 installation on WebLogic:
If you deployed P6 in WebLogic:
java -jar JSPPrecompile.jar -u http://localhost:7001/p6 -f <p6home>/p6.ear
where
<p6home>
is the location you installed P6. For example, C:\P6EPPM_1\p6\p6.ear or /usr/P6EPPM_1/p6/p6.ear.If you used the P6 EPPM Configuration Wizard to deploy P6:
java -jar JSPPrecompile.jar -u http://localhost:8203/p6 -f p6home/p6.ear
where p6home is the location where you installed P6. For example, C:\P6EPPM_1\p6\p6.ear or /usr/P6EPPM_1/p6/p6.ear.