简体   繁体   中英

Unrecognized vm option when opening RubyMine on Ubuntu

New to RubyMine. I am trying to open RubyMine on Ubuntu and getting following error -

$ bin/rubymine.sh

Unrecognized VM option '+UseCodeCacheFlushing'
Could not create the Java virtual machine.

My java version is -

$ java -version

java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)

您应该将JDK更新到较新的版本 ,您安装的版本太旧并且不支持+UseCodeCacheFlushing选项

After some R&D. This is how i resolved this problem.

I open the rubymine.vmoptions file in edit mode

$ RubyMine-5.4.3.2.1$ sudo nano rubymine.vmoptions

I found following entries in the file-

-Xms128m
-Xmx512m
-XX:MaxPermSize=1000m

-XX:ReservedCodeCacheSize=64m
-XX:+UseCodeCacheFlushing
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true

I increased the memory size in first 3 entries and remove some entries from the file. These are the final entries in my file -

-Xms800m
-Xmx1200m
-XX:MaxPermSize=1000m
-ea

Now when i executed
$ bin/rubymine.sh

It open the RubyMine editor. I am not sure is this the correct solution, but it work for me :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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