无法识别的选项:-Xcext.enabled = true错误JVM,JRuby,Scala和RubyMine

时间:2014-07-12 03:30:24

标签: scala ubuntu jvm jruby

与安装JRuby时的某些内容相关的错误确实很紧密。 在使用RVM安装JRuby时,它有一个编译需要的依赖项,我相信它不是那么好。我不太记得哪个依赖项。它接缝属于JVM和-Xcext。

的Scala:

~$ scala
Unrecognized option: -Xcext.enabled=true
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

此处没有Google搜索结果。

我已尝试使用http://www.scala-lang.org版本2.11.1中的最新版本并收到了此错误。

Java版本:

java version "1.7.0_55"
OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)

的JRuby:

尝试通过RVM重新安装JRuby并没有要求构建任何依赖项。因此,我必须在线查找-Xcext案例并弄清楚。 ......我似乎无法找到有问题的东西。

~$ irb
Unrecognized option: -Xcext.enabled=true
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

它会影响RubyMine。我真的想知道这个问题嵌入了哪里,因为它引起了一些令人头疼的问题!

安装JRuby-head

~/.rvm$ rvm install jruby-head
Checking requirements for ubuntu.
Requirements installation successful.
$JAVA_HOME was empty, setting up JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre, if it fails try setting JAVA_HOME to something sane and try again.
Cloning from git://github.com/jruby/jruby.git, this may take a while depending on your connection.
HEAD is now at dc4248b Minor cleanup.
From git://github.com/jruby/jruby
 * branch            master     -> FETCH_HEAD
Already up-to-date.
Copying from repo to src path...
jruby-head - #mvn....................................................................................................................................
jruby-head - #installing to /home/user/.rvm/rubies/jruby-head.
jruby-head - #making binaries executable......
jruby-head - #downloading rubygems-2.2.2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  404k  100  404k    0     0  1465k      0 --:--:-- --:--:-- --:--:-- 1470k
jruby-head - #extracting rubygems-2.2.2....
jruby-head - #removing old rubygems.........
jruby-head - #installing rubygems-2.2.2.
Error running 'env GEM_HOME=/home/user/.rvm/gems/jruby-head@global GEM_PATH= /home/user/.rvm/rubies/jruby-head/bin/ruby -d /home/user/.rvm/src/rubygems-2.2.2/setup.rb',
showing last 15 lines of /home/user/.rvm/log/1405475737_jruby-head/rubygems.install.log
[2014-07-15 22:00:00] /home/user/.rvm/rubies/jruby-head/bin/ruby
current path: /home/user/.rvm/src/rubygems-2.2.2
GEM_HOME=/home/user/.rvm/gems/jruby-1.7.13
PATH=/home/user/.rvm/gems/jruby-1.7.13/bin:/home/user/.rvm/gems/jruby-1.7.13@global/bin:/home/user/.rvm/rubies/jruby-1.7.13/bin:/home/user/.rvm/bin:/usr/local/heroku/bin:.:/home/user/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/RubyMine/bin
GEM_PATH=/home/user/.rvm/gems/jruby-1.7.13:/home/user/.rvm/gems/jruby-1.7.13@global
command(6): env GEM_HOME=/home/user/.rvm/gems/jruby-head@global GEM_PATH= /home/user/.rvm/rubies/jruby-head/bin/ruby -d /home/user/.rvm/src/rubygems-2.2.2/setup.rb
Unrecognized option: -Xcext.enabled=true
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Gemset '' does not exist, 'rvm jruby-head do rvm gemset create ' first, or append '--create'.

1 个答案:

答案 0 :(得分:1)

听起来您在其中一个JVM的选项环境变量中有-Xcext.enabled=true,例如JAVA_OPTS_JAVA_OPTIONSJAVA_TOOL_OPTIONS。我假设在某些时候它应该被添加到特定于JRuby的环境变量中,但是意外地被放入其中一个JVM中。