Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Sep 2016 10:31:24 -0700
From:      Chuck Tuffli <chuck@tuffli.net>
To:        freebsd-emulation@freebsd.org
Subject:   help debugging Oracle Java error
Message-ID:  <CAM0tzX2usMfge5o1O--bYZW6UbDYETt6i7_V5ihd2uNdp0LgSw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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.



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