在 Ubuntu 11.10 上安装 IDEA [英] Installing IDEA on Ubuntu 11.10

查看:33
本文介绍了在 Ubuntu 11.10 上安装 IDEA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Ubuntu 11.10 上安装 IDEA.首先,我安装了 openjdk-7-jdk.然后我尝试按照指示运行 idea.sh 文件.但是它抱怨:

I am trying to install IDEA on Ubuntu 11.10. First, I installed openjdk-7-jdk. Then I tried running the idea.sh file as instructed. However it complains:

ERROR: cannot start IntelliJ IDEA.
No JDK found to run IDEA. Please validate either IDEA_JDK, JDK_HOME or JAVA_HOME 
environment variable points to valid JDK installation.

Press Enter to continue.

尝试 echo 这三个变量会在屏幕上打印一个空行.我如何(以及为什么值)设置这些变量并继续安装?谢谢.

Trying to echo these three variables prints an empty line to the screen. How (and to what values) do I set these variables and proceed with the installation? Thanks.

推荐答案

更新:

建议在 Linux 上使用捆绑的 JetBrains Runtime 来运行 IntelliJ IDEA.目前 IntelliJ IDEA 需要 Java 8 才能在此平台上运行.可以切换到系统或其他一些 Java 版本,请检查常见问题.

It's recommended to use the bundled JetBrains Runtime on Linux to run IntelliJ IDEA. At the moment IntelliJ IDEA requires Java 8 to run on this platform. It's possible to switch to a system or some other Java version, please check the FAQ.

原始答案(已过时):

建议使用 OpenJDK 1.7+ 或 Oracle JDK 在 Linux 上运行 IntelliJ IDEA,由于已知的性能和视觉问题,严格不支持 OpenJDK 1.6.

It's recommended to use OpenJDK 1.7+ or Oracle JDK to run IntelliJ IDEA on Linux, OpenJDK 1.6 is strictly unsupported because of the known performance and visual issues.

从 IntelliJ IDEA 16 开始,自定义 JRE 与 Linux 发行版捆绑在一起.

Starting from IntelliJ IDEA 16, custom JRE is bundled with Linux distributions.

棘手的部分是 Oracle JDK 不再通过 .deb 包分发,您不能只使用 apt-get 或 Ubuntu 软件中心安装它.

The tricky part is that Oracle JDK is no longer distributed via .deb packages and you can't just install it with apt-get or Ubuntu Software Center.

他们的网站也很混乱,您可以轻松下载 JRE 而不是 JDK(这将无法运行,因为 IntelliJ IDEA 需要 JRE 包中缺少的 tools.jar).

Their site is also confusing and you can easily download JRE instead of the JDK (which will not work as IntelliJ IDEA needs tools.jar that is missing from JRE package).

这里是正确的网址 用于 JDK 下载(版本 1.6.0_29).从此 URL 下载相应的 .bin 文件,例如 jdk-6u29-linux-i586.bin 如果您需要 32 位 Java 或 jdk-6u29-linux-x64.bin 用于 64 位版本.

Here is the correct URL for the JDK downloads (version 1.6.0_29). From this URL download the appropriate .bin file, for example jdk-6u29-linux-i586.bin if you need 32-bit Java or jdk-6u29-linux-x64.bin for 64-bit version.

chmod +x jdk-6u29-linux-i586.bin
./jdk-6u29-linux-i586.bin

安装在当前目录中.

bin/idea.sh 中的第二行添加以下内容:

Inside bin/idea.sh add the following on the second line:

export IDEA_JDK=/path/to/jdk1.6.0_29

通常位于 /usr/lib/jvm/ 下.现在 IntelliJ IDEA 应该可以在 Oracle JDK 1.6.0_29 下正常启动.您可以在Help 中进行验证 |关于.

Normally resides under /usr/lib/jvm/<YOUR_JDK>. Now IntelliJ IDEA should start fine under Oracle JDK 1.6.0_29. You can verify it in Help | About.

这篇关于在 Ubuntu 11.10 上安装 IDEA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆