[SOLVED] gradle: java: symbol lookup error libnative-platform-curses.so: undefined symbol: tgetent

This is a solution for an exception occurred when you try to run any gradle task using improper JDK.

Problem

When you try execute any gradle task (i.e.. gradle tasks) an exception is thrown like below :

 

Cause

You try to use openjdk instead of oracle-jdk. Probably because oenjdk is set as default JDK in your OS.  You can verify this by typing:

In my case I got:

Solution

Set proper JAVA_HOME environment variable and retry gradle task.

Linux:


Windows:

 

Leave a Reply

avatar
  Subscribe  
Notify of
Close Menu