From owner-freebsd-emulation@freebsd.org Fri Sep 16 17:31:26 2016 Return-Path: Delivered-To: freebsd-emulation@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 2406FBDD1AE for ; Fri, 16 Sep 2016 17:31:26 +0000 (UTC) (envelope-from chuck@tuffli.net) Received: from mail-yw0-x22d.google.com (mail-yw0-x22d.google.com [IPv6:2607:f8b0:4002:c05::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E4501785 for ; Fri, 16 Sep 2016 17:31:25 +0000 (UTC) (envelope-from chuck@tuffli.net) Received: by mail-yw0-x22d.google.com with SMTP id u82so87801651ywc.2 for ; Fri, 16 Sep 2016 10:31:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuffli-net.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=DZ94XMocc7jxzeiT9FSB6VGhPcHs8Wmq0i7813gPFxk=; b=RBXUI/3LDXjnNfzsaX+29u8PrHDFgJ/M3LK1g9xC8WsnIYO/M4xqVFAJHrWqvXNiNc uLNOgH0z2vT9pyuJhw7RS6V0R0d73QWHJwrFQzwql3p/U/DtyE4cTLAegRLhw5hIVPJS m88bCqsw7xJKhuBbc44K6Mqw/8J0LxdhielV0tVVnw0BD5/wxXZ4BGZm6ziGCE9MwtP5 aDmH4ifC1FqKptgq6cSUWTSelJKDpSK8dAiDniVGW0hDbbAGtBbVgiULNKLWajtQMDoK AgoHRx/jWK/1llYjMdzCXBr0+Wz/DFsHVQzHSi7aYuNXhGuqkXvUBypMeGn/suJL01Z+ ilkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=DZ94XMocc7jxzeiT9FSB6VGhPcHs8Wmq0i7813gPFxk=; b=bKgPUz2/AXnhwuCKCbLa1tOPUbitJlstFmzQr+DniMR0XxL37xLFiFyMRTSnmwxoKc BgmRkGMgajgAwrB2A49DPa66m3MtIWRMVF6/8AKDtjX5d2UdUZhHYJ8ovIoGV+Izz7SH AiC5MYqqY6ddKY/d/iot5VNXK/ftd/ZrDdrEqsdFwXDEWAlh7WaX7OOv9cCcemMIJ7+F 1cLYiMdZMJmRiFzzaEAVST8K2CO2AE1ah7SjvD9mqYuP+6uUacnObo+Dr2Epyas/pIm8 X5T/Dj4LA4vSQpu8kzwWWCtXihibLpEMyUItoI6KKXpKIlzw8ghclmA90U3AdbjYcVF2 O1Sw== X-Gm-Message-State: AE9vXwOLiAII7XcolaYxjZAtrEbUbaMAsTWl1hUzevUOge5f3DqpdvsrN2hpcMlNsaNDHnPAm2xIEt1AFJGx/A== X-Received: by 10.13.249.194 with SMTP id j185mr15294753ywf.155.1474047084628; Fri, 16 Sep 2016 10:31:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.97.130 with HTTP; Fri, 16 Sep 2016 10:31:24 -0700 (PDT) From: Chuck Tuffli Date: Fri, 16 Sep 2016 10:31:24 -0700 Message-ID: Subject: help debugging Oracle Java error To: freebsd-emulation@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Sep 2016 17:31:26 -0000 What's the best way to go about debugging a failure with a Java application using the Linux JDK provided by Oracle? The application in question uses the gradle wrapper (i.e. gradlew) to run, but throws an java.io.IOException error ("Too many levels of symbolic links"). Note that this runs fine on Ubuntu so the assumption is the error is related to some interaction with the Linux emulation. The JDK comes from an RPM provided by Oracle and was installed using the rpm2cpio method shown in the Handbook. Running JEdit with the Oracle JDK works without error. TIA. --chuck $ uname -mrsv FreeBSD 12.0-CURRENT FreeBSD 12.0-CURRENT #8 a212210(drm-next-4.7): Tue Sep 6 12:20:35 UTC 2016 root@gauntlet:/usr/obj/usr/src/sys/GENERIC amd64 $ pkg which /compat/linux/bin /compat/linux/bin was installed by package linux_base-c7-7.2.1511 $ export JAVA_HOME=/compat/linux/usr/java/jdk1.8.0_101 $ $JAVA_HOME/bin/java -version java version "1.8.0_101" Java(TM) SE Runtime Environment (build 1.8.0_101-b13) Java HotSpot(TM) Server VM (build 25.101-b13, mixed mode) $ ./gradlew tasks FAILURE: Build failed with an exception. * What went wrong: java.io.IOException: Too many levels of symbolic links * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.