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

查看:196
本文介绍了在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.

推荐答案

建议使用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).

< a href =http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u29-download-513648.html\"rel =noreferrer>以下是JDK的正确URL 下载(版本1.6.0_29)。从此URL下载相应的 .bin 文件,例如 jdk-6u29-linux-i586.bin ,如果您需要32位Java或 jdk-6u29-适用于64位版本的linux-x64.bin

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 内添加以下第二行:

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

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

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天全站免登陆