我刚刚收到了全新的 Acer 13 英寸 (Modell CB5-311) Chromebook 作为礼物。我真的很喜欢它到现在。
所以,我很想用它来使用 IntelliJ IDEA 进行开发。出于这个原因,我通过 crouton 安装了带有 GNOME 桌面 (ARM) 的 Ubuntu 12.04。它运行非常流畅,我喜欢这种体验,但我就是无法让 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
我在 idea.sh 文件中将 IDE_JVM_ARGS 从
IDE_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
也许有人知道这里出了什么问题?
谢谢!
托马斯