我刚收到一台全新的Acer 13英寸(Modell CB5-311)Chromebook作为礼物。我真的很喜欢它。
所以,我很乐意用它来开发IntelliJ IDEA。出于这个原因,我通过crouton安装了Ubuntu 12.04和GNOME桌面(ARM)。它运行得非常顺利,我喜欢这种体验,但我无法让IntelliJ工作。
我尝试了此问题中建议的步骤:How to install JDK and Intellij IDEA on ARM/Samsung series 3
以下是我在Ubuntu启动并运行后所做的工作的总结:
我安装了open jdk 7.。
sudo apt-get update && sudo apt-get install openjdk-7-jdk
我下载了最新版本的IntelliJ IDEA(v.14.1.4),将其移至用户的主目录并在那里解压缩。
mv ~/Downloads/idea-IU*.tar.gz ~
cd ~
tar xvf idea-IU*.tar.gz
I在idea.sh文件中,我从
更改了IDE_JVM_ARGSIDE_JVM_ARGS=""
到
IDE_JVM_ARGS="-jamvm"
然后我从https://gist.github.com/pcarrier/7560053#file-fsnotifierto-sh下载了fsnotifierto.sh脚本并运行它。
./fsnotifierto.sh ~/idea-IC-141.1532.4/bin/
这些脚本的输出看起来非常好。所以我认为它成功了。
所以,当我现在运行./idea.sh时,我会看到一个屏幕,询问我是否要从以前的IntelliJ IDEA版本导入设置。我点击“否”,屏幕消失。之后没有任何事情发生,我的控制台中没有收到任何错误消息,idea.sh脚本停止运行。当我再次尝试启动idea.sh时,对话框不再出现。
当我在调试模式下运行脚本时,我收到以下输出:
(precise)sebbi@localhost:~/idea-IC-141.1532.4/bin$ bash -x idea.sh
++ which uname
+ UNAME=/bin/uname
++ which egrep
+ GREP=/bin/egrep
+ GREP_OPTIONS=
++ which cut
+ CUT=/usr/bin/cut
++ which readlink
+ READLINK=/bin/readlink
++ which xargs
+ XARGS=/usr/bin/xargs
++ which dirname
+ DIRNAME=/usr/bin/dirname
++ which mktemp
+ MKTEMP=/bin/mktemp
++ which rm
+ RM=/bin/rm
++ which cat
+ CAT=/bin/cat
++ which tr
+ TR=/usr/bin/tr
+ '[' -z /bin/uname -o -z /bin/egrep -o -z /usr/bin/cut -o -z /bin/mktemp -o -z /bin/rm -o -z /bin/cat -o -z /usr/bin/tr ']'
++ /bin/uname -s
+ OS_TYPE=Linux
+ SCRIPT_LOCATION=idea.sh
+ '[' -x /bin/readlink ']'
+ '[' -L idea.sh ']'
++ dirname idea.sh
+ IDE_HOME=./..
++ dirname idea.sh
+ IDE_BIN_HOME=.
+ '[' -n '' -a -x /bin/java ']'
+ '[' -x ./../jre/bin/java ']'
+ '[' -n '' -a -x /bin/java ']'
+ '[' -n '' -a -x /bin/java ']'
++ which java
+ JAVA_BIN_PATH=/usr/bin/java
+ '[' -n /usr/bin/java ']'
+ '[' Linux = FreeBSD -o Linux = MidnightBSD ']'
+ '[' Linux = SunOS ']'
+ '[' Linux = Darwin ']'
+ '[' -z '' -a -x /bin/readlink -a -x /usr/bin/xargs -a -x /usr/bin/dirname ']'
++ /bin/readlink -f /usr/bin/java
+ JAVA_LOCATION=/usr/lib/jvm/java-7-openjdk-armhf/jre/bin/java
+ case "$JAVA_LOCATION" in
++ /usr/bin/xargs /usr/bin/dirname
++ /usr/bin/xargs /usr/bin/dirname
++ /usr/bin/xargs /usr/bin/dirname
++ echo /usr/lib/jvm/java-7-openjdk-armhf/jre/bin/java
+ JAVA_LOCATION=/usr/lib/jvm/java-7-openjdk-armhf
+ '[' '!' -d /usr/lib/jvm/java-7-openjdk-armhf/bin ']'
+ '[' -x /usr/lib/jvm/java-7-openjdk-armhf/bin/java ']'
+ JDK=/usr/lib/jvm/java-7-openjdk-armhf
+ '[' -z /usr/lib/jvm/java-7-openjdk-armhf ']'
++ /bin/mktemp -t java.version.log.XXXXXX
+ VERSION_LOG=/tmp/java.version.log.AJKHF9
+ /usr/lib/jvm/java-7-openjdk-armhf/bin/java -version
+ /bin/egrep '64-Bit|x86_64|amd64' /tmp/java.version.log.AJKHF9
+ BITS=1
+ /bin/rm -f /tmp/java.version.log.AJKHF9
+ '[' 1 -eq 0 ']'
+ BITS=
+ '[' -n '' ']'
+ MAIN_CLASS_NAME=
+ '[' -z '' ']'
+ MAIN_CLASS_NAME=com.intellij.idea.Main
+ VM_OPTIONS=
+ VM_OPTIONS_FILES_USED=
+ for vm_opts_file in '"$IDE_BIN_HOME/idea$BITS.vmoptions"' '"$HOME/.IdeaIC14/idea$BITS.vmoptions"' '"$IDEA_VM_OPTIONS"'
+ '[' -r ./idea.vmoptions ']'
++ /bin/cat ./idea.vmoptions
++ /usr/bin/tr '\n' ' '
++ /bin/egrep -v '^#.*'
+ VM_OPTIONS_DATA='-server -Xms128m -Xmx512m -XX:MaxPermSize=250m -XX:ReservedCodeCacheSize=150m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Dawt.useSystemAAFontSettings=lcd '
+ VM_OPTIONS=' -server -Xms128m -Xmx512m -XX:MaxPermSize=250m -XX:ReservedCodeCacheSize=150m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Dawt.useSystemAAFontSettings=lcd '
+ '[' -n '' ']'
+ VM_OPTIONS_FILES_USED=./idea.vmoptions
+ for vm_opts_file in '"$IDE_BIN_HOME/idea$BITS.vmoptions"' '"$HOME/.IdeaIC14/idea$BITS.vmoptions"' '"$IDEA_VM_OPTIONS"'
+ '[' -r /home/sebbi/.IdeaIC14/idea.vmoptions ']'
+ for vm_opts_file in '"$IDE_BIN_HOME/idea$BITS.vmoptions"' '"$HOME/.IdeaIC14/idea$BITS.vmoptions"' '"$IDEA_VM_OPTIONS"'
+ '[' -r '' ']'
+ IS_EAP=false
+ '[' false = true ']'
+ IDE_JVM_ARGS=-jamvm
+ CLASSPATH=./../lib/bootstrap.jar
+ CLASSPATH=./../lib/bootstrap.jar:./../lib/extensions.jar
+ CLASSPATH=./../lib/bootstrap.jar:./../lib/extensions.jar:./../lib/util.jar
+ CLASSPATH=./../lib/bootstrap.jar:./../lib/extensions.jar:./../lib/util.jar:./../lib/jdom.jar
+ CLASSPATH=./../lib/bootstrap.jar:./../lib/extensions.jar:./../lib/util.jar:./../lib/jdom.jar:./../lib/log4j.jar
+ CLASSPATH=./../lib/bootstrap.jar:./../lib/extensions.jar:./../lib/util.jar:./../lib/jdom.jar:./../lib/log4j.jar:./../lib/trove4j.jar
+ CLASSPATH=./../lib/bootstrap.jar:./../lib/extensions.jar:./../lib/util.jar:./../lib/jdom.jar:./../lib/log4j.jar:./../lib/trove4j.jar:./../lib/jna.jar
+ CLASSPATH=./../lib/bootstrap.jar:./../lib/extensions.jar:./../lib/util.jar:./../lib/jdom.jar:./../lib/log4j.jar:./../lib/trove4j.jar:./../lib/jna.jar:/usr/lib/jvm/java-7-openjdk-armhf/lib/tools.jar
+ '[' -n '' ']'
+ LD_LIBRARY_PATH=.:
+ /usr/lib/jvm/java-7-openjdk-armhf/bin/java -Xbootclasspath/a:./../lib/boot.jar -classpath ./../lib/bootstrap.jar:./../lib/extensions.jar:./../lib/util.jar:./../lib/jdom.jar:./../lib/log4j.jar:./../lib/trove4j.jar:./../lib/jna.jar:/usr/lib/jvm/java-7-openjdk-armhf/lib/tools.jar -server -Xms128m -Xmx512m -XX:MaxPermSize=250m -XX:ReservedCodeCacheSize=150m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Dawt.useSystemAAFontSettings=lcd -Djb.vmOptionsFile=./idea.vmoptions -XX:ErrorFile=/home/sebbi/java_error_in_IDEA_%p.log -Djb.restart.code=88 -Didea.paths.selector=IdeaIC14 -jamvm com.intellij.idea.Main
jmm_GetInputArgumentArray
+ EC=1
+ test 1 -ne 88
+ exit 1
也许有人知道这里出了什么问题?
谢谢!
托马斯
答案 0 :(得分:9)
Wooohooo ......我让IntelliJ跑了。我刚刚从jetbrain的git存储库下载了源代码,并使用ARM jdk自行编译。
以下是如何做到这一点:
安装git:
apt-get install git
安装ant:
apt-get install ant
将存储库克隆到本地驱动器(这需要一段时间):
git clone git://git.jetbrains.org/idea/community.git idea
下载最新稳定的jdk。我使用oracle jdk 8 for ARM。
sudo add-apt-repository ppa:webupd8team/java -y
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default
检查一下是否成功:
(precise)sebbi@localhost:~/idea$ java -version
java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b07)
Java HotSpot(TM) Server VM (build 25.51-b07, mixed mode)
将存储库克隆到本地磁盘需要一段时间。当它被finsihed转到cloned-idea-directory /并调用ant build。
(precise)sebbi@localhost:~/idea$ ant build
这个过程现在花了大约25分钟。编译完成后,将ideaIC-142.SNAPSHOT.tar.gz从cloned-idea-directory / out / artifacts解压缩到您选择的目录。
(precise)sebbi@localhost:~/idea/out/artifacts$ tar -xfz ideaIC-142.SNAPSHOT.tar.gz -C ~/idea-compiled
现在你需要运行fsnotifierto.sh脚本(从https://gist.github.com/pcarrier/7560053#file-fsnotifierto-sh获取)。
./fsnotifierto.sh ~/idea-compiled
现在你可以开始IDEA了!
cd ~/idea-compiled/bin
./idea.sh
我建议使用IntelliJ主题。我的设备上的GTK主题有点慢。
现在有乐趣和代码!