简体   繁体   English

运行时错误(无法创建 Java VM)

[英]RuntimeError (can't create Java VM)

thanks to read my question.感谢阅读我的问题。

I want to use rjb, twkorean gem.我想使用 rjb,twkorean gem。 These are successfully installed这些安装成功

but I got error........但我有错误......

Completed 500 Internal Server Error in 19ms
RuntimeError (can't create Java VM):

I had installed java-7-oracle我已经安装了 java-7-oracle

$ echo $JAVA_HOME
/usr/lib/jvm/java-7-oracle

$ java -version
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)

$ ps aux | grep jvm
newstru+ 26483  0.0  0.0  11740   932 pts/0    R+   18:08   0:00 grep --color=auto jvm

Following code is my production envirnment (ubuntu 16.04).以下代码是我的生产环境(ubuntu 16.04)。

I don't understand this error.我不明白这个错误。 I have no idea.我不知道。

please, tell me any idea.请告诉我任何想法。

You should check and post some logs to get more information about the problem.您应该检查并发布一些日志以获取有关该问题的更多信息。 It could have many root causes:它可能有很多根本原因:

  1. The tool you are trying to use does not have permissions to execute java您尝试使用的工具没有执行 java 的权限
  2. The tool you are using cannot find the java executable.您使用的工具找不到 java 可执行文件。 According to http://rjb.rubyforge.org/ you could try to set LD_LIBRARY_PATH to contain your $JAVA_HOME/bin folder.根据http://rjb.rubyforge.org/,您可以尝试将 LD_LIBRARY_PATH 设置为包含您的 $JAVA_HOME/bin 文件夹。

In general, you should maybe try searching for (and reading) documentation about your tools first before posting to SO, and when posting, follow some basic rules: https://stackoverflow.com/tour一般来说,在发布到 SO 之前,您应该先尝试搜索(和阅读)有关您的工具的文档,并且在发布时,请遵循一些基本规则: https : //stackoverflow.com/tour

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM