From owner-freebsd-java@freebsd.org Fri Aug 4 03:35:00 2017 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DA39EDC257E for ; Fri, 4 Aug 2017 03:35:00 +0000 (UTC) (envelope-from jinlong.hao@gausscode.com) Received: from smtpbgbr2.qq.com (smtpbgbr2.qq.com [54.207.22.56]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CA2FA77408 for ; Fri, 4 Aug 2017 03:34:59 +0000 (UTC) (envelope-from jinlong.hao@gausscode.com) X-QQ-mid: bizesmtp15t1501817655tf0gc0hk Received: from jinlong.gausscode.cn (unknown [218.70.9.90]) by esmtp4.qq.com (ESMTP) with id ; Fri, 04 Aug 2017 11:34:15 +0800 (CST) X-QQ-SSF: 00400000004000F0F510B00A0000000 X-QQ-FEAT: 9NFkmNiL4hfXtlijM8LJ0Im/MZIybU/01wBzP8s2IEPCRWCtZwif+o8mX9LpG Li4+1XtQpmOwTAHTdTZbdoV/Q6/pD+wj7rgvb4wg9rE5iFeK3gdZ2A5Y3DINbwvzLgeUYNR kmfII7Iu54k6tLNKOyJ8v1Ivbx36X2kSnQRm+0LoNgOGK1dUVf4hJG9GAmmuFTyycq2zzX8 0SRLc/MnfAEc+32gBnaoeNBY3UHgGH/dx4E49uelr+dXrNPizUZTjnR7Cm3bPrVKb0MII8X gR4/8i4qPpd+sl X-QQ-GoodBg: 2 To: freebsd-java@freebsd.org From: "jinlong.hao" Subject: Help with linux-oracle-jdk: does not work correctly with NON-ROOT user Message-ID: <73aaecb0-db26-0044-d931-f979b6d2058e@gausscode.com> Date: Fri, 4 Aug 2017 11:34:15 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Language: en-US X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:gausscode.com:qybgforeign:qybgforeign1 X-QQ-Bgrelay: 1 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Aug 2017 03:35:01 -0000 Hi, ALL: For some reason, I have change openjdk to linux-oracle-jdk. I've install linux-oracle-jdk on FreeBSD-11(linux-c7 by pkg, linux-oracle-jdk18 by ports), and i find two problems with it: 1. After install linux-oracle-jdk, with root user, i type "java -version" command, and the *error msg* appears: "libjli.so: cannot open shared object file: No such file or directory". I simply cp this file from jdk directory to /compat/linux/lib, *the problem is solved*. 2. when i change user from root to common user, the "java -version" seems does not work correctly, and*there is no response any more*. Could anyone tell me what's the problem, and how to solve it? -- /jinlong.hao Gausscode Inc. jinlong.hao@gausscode.com /