龙芯机器:
[root@localhost j2sdk-image]# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
4 Loongson-3A R4 (Loongson-3A4000) @ 1800MHz
龙芯机器JDK安装和配置
下载
地址:http://www.loongnix.cn/zh/api/java/
选择JDK8,选择MIPS64进行下载
安装
tar -zxvf loongson8.1.11-jdk8u332b09-linux-loongson3a.tar.gz
配置环境变量
export JAVA_HOME=/root/cg/j2sdk-image
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$PATH
查看JAVA_HOME
[root@localhost j2sdk-image]# echo $JAVA_HOME
/root/cg/j2sdk-image
查看jdk版本
[root@localhost j2sdk-image]# java -version
openjdk version "1.8.0_332"
OpenJDK Runtime Environment (Loongson 8.1.11-loongson3a-Fedora) (build 1.8.0_332-b09)
OpenJDK 64-Bit Server VM (build 25.332-b09, mixed mode)