如何在 ARM/三星系列 3 上安装 JDK 和 Intellij IDEA [英] How to install JDK and Intellij IDEA on ARM/Samsung series 3

查看:54
本文介绍了如何在 ARM/三星系列 3 上安装 JDK 和 Intellij IDEA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我对 Linux 非常非常陌生.我也是编码新手.我目前正在学习 Java 并购买了三星系列 3 Chromebook,仅用于练习代码(最终转向 slick 3d).

So I am very, very new to Linux. I am also new-ish to coding. I'm currently learning Java and purchased a Samsung series 3 Chromebook for the sole purpose of practicing code (eventually moving to slick 3d).

我刚刚使用 crouton 安装了 XFCE,并使用 Synaptic Package Manager 安装了 Firefox,哇哦!

I have JUST installed XFCE using crouton and have gotten Firefox using the Synaptic Package Manager, woohoo!

我想了解此设备需要使用哪种 JDK 以及如何安装 Intellij IDEA.我已经尝试搜索了一段时间,但对所有关于此的信息感到有点不知所措,不仅是新操作系统,还有新架构 (ARM).

I would like to find out how/which JDK I need for this device and how to install Intellij IDEA. I've tried searching around for a little while now and feel a bit overwhelmed with all the information regarding this, not only new OS, but new architecture (ARM).

基本上,我的主要目标是能够启动并运行正确的 JDK 和 Java IDE.我已经读到 Intellij IDEA 可能还没有用于 ARM 处理器,在这种情况下,使用 Eclipse 也可以.

Basically my main goals are to be able to get the proper JDK and a Java IDE up and running. I have read that Intellij IDEA may or may not be available yet for the ARM processors in which case using Eclipse would be just as fine.

推荐答案

有点晚,但我自己做了这个.非常简单:转到 https://www.jetbrains.com/idea/download最新版本的想法.在下载过程中,转到终端并输入

A bit late but just did this myself. Very simple really: Go to https://www.jetbrains.com/idea/download for the latest version of idea. While it's downloading go to the terminal and type

sudo apt-get update && sudo apt-get install openjdk-7-jdk

下载Idea并安装openjdk后,将idea文件解压到某处.

Once Idea is downloaded and openjdk installed, extract the idea file somewhere.

mv ~/Downloads/idea-IU*.tar.gz ~
cd ~
tar xvf idea-IU*.tar.gz

要启动idea,只需进入解压目录并运行bin目录下的idea.sh

To launch idea then just go to the extracted directory and run the idea.sh in the bin directory

cd idea-IU*/bin
./idea.sh

应该很好地启动

更新:

说它很好地启动并不是谎言.它只是不会停留很长时间.试图看看出了什么问题.将更新调查结果.

Saying it starts up nicely was not a lie. It just doesn't stay up long. Trying to see whats going wrong. Will update with findings.

好的,所以您还需要执行以下操作,打开idea.sh并将-jamvm添加到用于运行intellij的参数列表中,因此更改这一行:

OK, so you'll also need to do the following, open idea.sh and add -jamvm to the list of arguments used to run intellij,so change this line:

IDE_JVM_ARGS=""

为此:

IDE_JVM_ARGS="-jamvm"

此外,您还需要安装 clang ( sudo apt-get install clang ) 并复制并运行 ( bash .sh/path/to/idea/bin ) 这家伙的 shell 脚本:https://gist.github.com/pcarrier/7560053#file-fsnotifierto-sh

ALSO, you'll need to install clang ( sudo apt-get install clang ) and copy and run ( bash <scriptname>.sh /path/to/idea/bin ) this guy's shell script : https://gist.github.com/pcarrier/7560053#file-fsnotifierto-sh

这篇关于如何在 ARM/三星系列 3 上安装 JDK 和 Intellij IDEA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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