title: Cloud Foundry : How to deploy spring boot app with an additional JVM command
body: <p>I am using Pivotal to host Spring boot app in Cloud Foundry. I am able to deploythe app without any commands fine. But my requirement is to run with an additional JVM command as a workaround for this <a href="https://stackoverflow.com/questions/9156379/ora-01882-timezone-region-not-found">issue</a></p>
  
  <pre><code>-Doracle.jdbc.timezoneAsRegion=false
  </code></pre>
  
  <p>Running with below manifest I get error,   </p>
  
  <pre><code>---
  applications:
  - name: gl-bo-sample   
    command: java -jar -Doracle.jdbc.timezoneAsRegion=false
    path: ./target/backoffice-1.0-SNAPSHOT.jar
    buildpacks:
        - https://github.com/cloudfoundry/java-buildpack.git
  </code></pre>
  
  <p><strong>CF Log</strong>   </p>
  
  <pre><code>2019-11-29T16:33:45.606+05:30 [CELL/0] [OUT] Cell f38e366a-22ac-45ee-9dba-73e1f505525a creating container for instance e1475d2b-0c8e-4766-7e13-6da7
  2019-11-29T16:33:45.952+05:30 [CELL/0] [OUT] Cell f38e366a-22ac-45ee-9dba-73e1f505525a successfully created container for instance e1475d2b-0c8e-4766-7e13-6da7
  2019-11-29T16:33:46.958+05:30 [CELL/0] [OUT] Starting health monitoring of container
  2019-11-29T16:33:47.168+05:30 [APP/PROC/WEB/0] [ERR] bash: java: command not found
  2019-11-29T16:33:47.179+05:30 [APP/PROC/WEB/0] [OUT] Exit status 127
  2019-11-29T16:33:47.182+05:30 [CELL/SSHD/0] [OUT] Exit status 0
  2019-11-29T16:33:47.385+05:30 [CELL/0] [OUT] Cell f38e366a-22ac-45ee-9dba-73e1f505525a stopping instance e1475d2b-0c8e-4766-7e13-6da7
  2019-11-29T16:33:47.385+05:30 [CELL/0] [OUT] Cell f38e366a-22ac-45ee-9dba-73e1f505525a destroying container for instance e1475d2b-0c8e-4766-7e13-6da7
  2019-11-29T16:33:47.402+05:30 [API/2] [OUT] Process has crashed with type: "web"
  </code></pre>
  
  <p>Could some one tell how to achieve this or any other approach to achieve this. Thanks. </p>