node-java error: libjvm.so: cannot open shared object file: No such file or directory

一曲冷凌霜 提交于 2019-12-08 16:08:35

It looks like you'll need to set the JAVA_HOME environment variable like this:

$ heroku config:set JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64"

This is because you are using the stack JDK (the default JDK). You can also use a custom JDK (usually a newer version) by adding the jvm-common buildpack to your app, which will also set JAVA_HOME for you:

$ heroku buildpacks:clear
$ heroku buildpacks:add https://github.com/heroku/heroku-buildpack-jvm-common
$ heroku buildpacks:add heroku/nodejs

Then redeploy with git push.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!