Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Aug 2017 15:24:57 +0800
From:      "=?utf-8?B?amlubG9uZw==?=" <jinlong.hao@gausscode.com>
To:        "=?utf-8?B?amF2YQ==?=" <java@FreeBSD.org>
Subject:   Help - Error with linux-oracle-jdk18
Message-ID:  <tencent_28BF38376BF9E290389B9EB7@qq.com>

index | next in thread | raw e-mail

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@gausscode.com
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?tencent_28BF38376BF9E290389B9EB7>