java Linux 上的 RubyMine

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10178601/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 23:57:10  来源:igfitidea点击:

RubyMine on linux

javaruby-on-rails-3ideintellij-idea

提问by Kvet

I am new in ubuntu and have a problem. I can not start RubyMine 4:

我是 ubuntu 的新手,遇到了问题。我无法启动 RubyMine 4:

kvet@Kvet-Notebook:~/RubyMine-4.0.3/bin$ java -version
java version "1.7.0_03"
OpenJDK Runtime Environment (IcedTea7 2.1.1pre) (7~u3-2.1.1~pre1-1ubuntu2)
OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode)
kvet@Kvet-Notebook:~/RubyMine-4.0.3/bin$ ./rubymine.sh
OpenJDK Runtime Environment (IcedTea7 2.1.1pre) (7~u3-2.1.1~pre1-1ubuntu2)
OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode)
OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode)
WARNING: You are launching the IDE using OpenJDK Java runtime.

         THIS IS STRICTLY UNSUPPORTED DUE TO KNOWN PERFORMANCE AND GRAPHICS PROBLEMS!

NOTE:    If you have both Oracle (Sun) JDK and OpenJDK installed
         please validate either RUBYMINE_JDK, JDK_HOME, or JAVA_HOME environment variable points to valid Oracle (Sun) JDK installation.
         See http://ow.ly/6TuKQ for more info on switching default JDK.

Press Enter to continue.

Error: Could not find or load main class com.intellij.idea.Main

I tried to install openjdk6 and has same error. I dont know what I must do.

我尝试安装 openjdk6 并出现相同的错误。我不知道我必须做什么。

回答by junky

I had this recently myself ([ERROR: cannot start RubyMine. No JDK found. JDK Version? + desktop link).

我最近自己有这个([错误:无法启动 RubyMine。未找到 JDK。JDK 版本?+ 桌面链接)。

Answer: Install java and check your path:

答:安装java并检查你的路径:

Download oracle7 jdk at:
http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html

在以下位置下载 oracle7 jdk:http :
//www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html

Follow instructions at:
http://www.webupd8.org/2011/09/how-to-install-oracle-java-7-jdk-in.htmle.g.

按照以下说明操作:
http : //www.webupd8.org/2011/09/how-to-install-oracle-java-7-jdk-in.html例如

After downloading java (above): Extract the downloaded Oracle Java JDK archive into your home folder and rename the newly created folder to "java-7-oracle".

下载 java(上图)后:将下载的 Oracle Java JDK 存档解压到您的主文件夹中,并将新创建的文件夹重命名为“java-7-oracle”。

sudo mv its_name java-7-oracle

Install it:

安装它:

cd
sudo mkdir -p  /usr/lib/jvm/ #just in case
sudo mv java-7-oracle/ /usr/lib/jvm/
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install update-java
sudo update-java

Check it:

核实:

java -version
javac -version

回答by Anjan

I am pretty sure you don't need to install JDK. For RubyMine to run, all you need is JRE. Unless you are going to do Java development, you don't need JDK.

我很确定你不需要安装JDK。要运行 RubyMine,您只需要 JRE。除非您打算进行 Java 开发,否则您不需要 JDK。

To setup Oracle / Sun JRE on Ubuntu / Mint / Debian, follow the instructions here: https://help.ubuntu.com/community/Java#Oracle_Java_7.

要在 Ubuntu/Mint/Debian 上设置 Oracle/Sun JRE,请按照此处的说明进行操作:https: //help.ubuntu.com/community/Java#Oracle_Java_7

Personally, I have used the instructions under Script (JRE only)section. Specifically, I installed JRE using the repository mentioned on this site: http://www.duinsoft.nl/packages.php?t=en. Works perfectly.

就个人而言,我使用了Script (JRE only)部分下的说明。具体来说,我使用本站点上提到的存储库安装了 JRE:http: //www.duinsoft.nl/packages.php?t=en。完美运行。

回答by Garrett Hall

Try installing the Oracle JDK and running RubyMine with that.

尝试安装 Oracle JDK 并使用它运行 RubyMine。