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.


$ 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.
freebsd-emulation@freebsd.org mailing list
To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"

Reply via email to