龙芯使用IDEA 2021.3 社区版
第一步:下载 http://ftp.loongnix.cn/Java/openjdk11/loongson11.0.2138-ea-jdk11.0.12_7-linux-loongarch64.tar.gz 。
第二步:解压到 /usr/lib/jvm/java-11-openjdk-loongarch64
。

第三步:下载 IDEA 2021.3 社区版(不需要 jbr,下载了带 jbr 文件夹的也可以手动删除),解压到 /usr/local/share/idea-IC-213.5744.223
。

第四步:初次启动 IDEA
cd /usr/local/share/idea-IC-213.5744.223/bin
export IDEA_JDK=/usr/lib/jvm/java-11-openjdk-loongarch64
sh idea.sh
第五步:使用 idea.jdk
替代 IDEA_JDK
环境变量,编辑 ~/.config/JetBrains/IdeaIC2021.3/idea.jdk
。

第六步:自行编译并配置 fsNotifier
,修复文件监听问题。
https://youtrack.jetbrains.com/articles/IDEA-A-1/Compiling-File-Watcher
you want to use it on some other platform, please compile it yourself:
Upgrade the IDE to version 2019.3 or newer.
Make sure you have C compiler and standard library headers/libraries packages installed (on Ubuntu,
sudo apt install libc6-dev gcc
should be enough).Download all
*.h
and*.c
files along withmake.sh
from https://github.com/JetBrains/intellij-community/tree/master/native/fsNotifier/linux, then executemake.sh
in the directory with downloaded files.Copy the compiled
fsnotifier
binary into any location, preferably outside of the IDE installation directory.Start the IDE and invoke Help | Edit Custom Properties action (or Configure | Edit Custom Properties from the welcome screen), add the following line, then restart the IDE:
idea.filewatcher.executable.path = fsnotifier-<ARCH>


第七步:关闭,重启 IDEA。可以使用 .desktop 文件创建菜单栏快捷方式。


至此,龙芯 IDEA 2021.3 社区版已完成安装。
最后更新于