下面是我安装zulu jdk的方式:
wget https://cdn.azul.com/zulu/bin/zulu18.32.13-ca-jdk18.0.2.1-linux_x64.tar.gz
mv zulu18.32.13-ca-jdk18.0.2.1-linux_x64.tar.gz /opt
cd /opt
tar -zxvf zulu18.32.13-ca-jdk18.0.2.1-linux_x64.tar.gz
vim ~/.bash_profile
export JAVA_HOME=/opt/zulu18.32.13-ca-jdk18.0.2.1-linux_x64
ex
我试图在Centos 5中构建OpenJDK 9。
sh ./configure --disable-warnings-as-errors
make all
我得到了以下错误。
Building target 'all' in configuration 'linux-x86_64-normal-server-release'
/root/jdk9/build/linux-x86_64-normal-server-
release/support/native/java.base/libjava/io_util_md.o: In function
`hand
我正在尝试设置一个使用Java和OpenCL的程序。为此,我使用了JOCL的绑定。下面是我从Ant构建时得到的错误:
Error while loading native library "JOCL-linux-x86_64" with base name "JOCL"
Operating system name: Linux
Architecture : amd64
Architecture bit size: 64
Stack trace:
java.lang.UnsatisfiedLinkError: no JOCL-linux-x
# which java
/usr/bin/which: no java in (/usr/local/jdk/jdk1.5.0_10/bin/java:/usr/local/jdk/jdk1.5.0_10/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin)
我在/usr/local/jdk/jdk1.5.0_10中安装了java,但无法运行java -version
我明白了
$ java -version
-
我做了一个Ubuntu 17.10的新安装。现在,我正在Ubuntu上安装Java 9。我跟踪了这的askubuntu回答,当我运行sudo apt-get install oracle-java9-installer时,这就是我得到的
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
gsfonts-x11 oracle-java9-set-d