错误:无法启动RubyMine。找不到JDK。 JDK版本? +桌面链接 [英] ERROR: cannot start RubyMine. No JDK found. JDK Version? + desktop link
问题描述
错误:无法启动RubyMine。
未找到JDK。请验证RUBYMINE_JDK,JDK_HOME或JAVA_HOME环境变量指向有效的JDK安装。
ERROR: cannot start RubyMine. No JDK found. Please validate either RUBYMINE_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation.
我不确定使用哪个JDK版本号进行下载?
I'm not sure what JDK version number to use to download it?
另外如何在11.10中创建桌面链接?
Also how to create a desktop link in 11.10?
推荐答案
原来在最后我必须做几件事来让java运行,从而解决问题:
Turned out that in the end I had to do several things to get java running and thus resolve the issue:
下载oracle7 jdk:
http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html
eg http://download.oracle.com/otn- pub / java / jdk / 7 / jdk-7-linux-x64.tar.gz
Download oracle7 jdk at:
http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html
e.g. http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-x64.tar.gz
按照以下说明操作:
< a href =http://www.webupd8.org/2011/09/how-to-install-oracle-java-7-jdk-in.html> http://www.webupd8.org/2011/09 /how-to-install-oracle-java-7-jdk-in.html
例如
Follow instructions at:
http://www.webupd8.org/2011/09/how-to-install-oracle-java-7-jdk-in.html
e.g.
下载java(上图)后:
将下载的Oracle Java JDK存档解压缩到您的主文件夹,并将新创建的文件夹重命名为java-7-oracle。
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".
sudo mv its_name java-7-oracle
安装Java
Install Java
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 # choose version 1.7 if necessary.
检查Java安装
Check the Java install
java -version
javac -version
然后我成功启动了rubyMine。
I was then able to start up rubyMine successfully.
在Ubuntu 11.10中创建桌面启动器:
To create the desktop launcher in Ubuntu 11.10:
一旦你安装了rubymine并且你在某个地方有可执行文件:
Once you've installed rubymine and you have the executable somewhere:
如果它被称为我的,那么创建一个运行它的桌面启动器
http://www.ubuntugeek.com/how-to-create-desktop-launchers-in-ubuntu-11-10oneiric.html
If it's called mine, then create a desktop launcher that runs it
http://www.ubuntugeek.com/how-to-create-desktop-launchers-in-ubuntu-11-10oneiric.html
您将(在终端窗口中)运行:
You'll run (in a terminal window):
gnome-desktop-item-edit ~/Desktop/ --create-new
表明例如,rubyMine可执行文件使用 / usr / local / bin / mine
作为要运行的命令。
Indicate where the rubyMine executable is, e.g. use /usr/local/bin/mine
as the command to run.
然后你也可以将它拖到那里的图标快速启动器的左侧工具栏图标区域。
You can then also drag that to the left side toolbar icons area for a icon quick-launcher there.
注意:
如果按照这些说明操作并在上面制作快速启动图标结束 - 确保不要删除您在清理桌面时先前创建的桌面图标,因为这样也会删除快速启动项目(它是指向它的链接)。
Note:
If following these instructions and making a quick-launch icon at the end - make sure NOT to delete the desktop icon you created earlier when cleaning up your desktop as this will also remove that quick-launch item (it's a link to it).
这篇关于错误:无法启动RubyMine。找不到JDK。 JDK版本? +桌面链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!