I am having a problem running gradle on ubuntu 13.10, which I am assuming is the root of the issue.
I installed gradle
using the below command
/home/stens/src/jvm/java-1.8.0-openjdk-amd64/bin/java: symbol lookup error: /usr/lib/jni/libnative-platform-curses.so: undefined symbol: tgetent
This is the easiest workaround I've found ... download the deb here
https://packages.debian.org/sid/amd64/libnative-platform-jni/download
then install using
sudo dpkg -i libnative-platform-jni_0.11-5_amd64.deb
now gradle works ... Ubuntu 17.10