Q:

Cloudfoundry setting JAVA_OPTS environment variable

I am deploying some application in cloudfoundry. I have some library jar and configuration files also inside the application. I want to setup those jar and config file as environment variable, so I did 
cf set-env APP_NAME JAVA_OPTS "-Dconf=/location/library.jar"

After these changes, I have to restage the application and I am always getting java.util.zip.ZipException. 

A:

Error log from cloud foundry was not helpful. It was because some of the dependency was required by the jar and they were missing. After adding those dependencies inside the workspace solved the issue.

