Unable to start the daemon process

i am using

echo $JAVA_HOME
/usr/lib/jvm/java-9-oracle

and yes it’s and error

Error: /var/www/html/ionicApp/platforms/android/cordova/build: Command failed with exit code 1
    at ChildProcess.whenDone (/home/university/.nvm/versions/node/v4.1.0/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:139:23)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:817:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

i am on ubuntu