Help - Error with linux-oracle-jdk18
jinlong
jinlong.hao at gausscode.com
Tue Aug 1 07:25:14 UTC 2017
Dear ALL:
In FreeBSD11.1, I install linux-c7 with pkg, and linux-oracle-jdk18 with ports, and all seems all right when installing. but when I type the command /usr/local/linux-oracle-jdk/bin/java -version has no response and no error messages.
I tried openjdk8 as well, and both "java -version" and "/usr/local/openjdk/bin/java -version" works well. but before install openjdk(only install linux-oracle-jdk18), "java -version" doesn't work as well.
Anyone can help me with this error?
By the way, I install linux-c7 meta package with "pkg install linux-c7", and I do all the configurations on the freebsd handbook:
1、load the linux64 model, and add "linux_enable=yes" in rc.conf
$ kldstat
Id Refs Address Size Name
1 26 0xffffffff80200000 1f67a88 kernel
2 1 0xffffffff82219000 5936 fdescfs.ko
3 1 0xffffffff8221f000 a877 linprocfs.ko
4 3 0xffffffff8222a000 7b0f linux_common.ko
5 1 0xffffffff82232000 bb55 tmpfs.ko
6 1 0xffffffff8223e000 2986 uhid.ko
8 1 0xffffffff82241000 3c93f linux64.ko
9 1 0xffffffff8227e000 42864 linux.ko
2、mount the /compat/linux/proc files and add configurations to /etc/fstab:
$ df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/vtbd0p2 480G 3.8G 438G 1% /
devfs 1.0K 1.0K 0B 100% /dev
fdescfs 1.0K 1.0K 0B 100% /dev/fd
procfs 4.0K 4.0K 0B 100% /proc
linprocfs 4.0K 4.0K 0B 100% /compat/linux/proc
tmpfs 19G 4.0K 19G 0% /compat/linux/dev/shm
------------------
Jinlong.Hao
PM / Gausscode
Mail:jinlong.hao at gausscode.com
More information about the freebsd-java
mailing list