This burned me today because I was attempting to put fonts into the home directory identified by the java system property "user.home" (which is /home/vcap) instead of the environment variable $HOME which is /var/vcap/app.
This is especially confusing because SSH home is "/home/vcap".
Anyone have any context into why $HOME for the app is /var/vcap/app and not /var/vcap?