Building apk error

hi guys,
I am new in ionic 2,
I have created a project and want to build APK file.
when i run “ionic cordova build --release android” command in project folder it shows error
"Requirements checj faild for JDK 1.8 or greater" but
i have JDK 9.0.1

please help

What is your ionic info output?

this is the output from ionic info

@ionic/cli-utils : 1.19.0
ionic (Ionic CLI) : 3.19.0

global packages:

cordova (Cordova CLI) : 7.1.0

local packages:

@ionic/app-scripts : 3.0.1
Cordova Platforms  : android 6.3.0
Ionic Framework    : ionic-angular 3.8.0

System:

Node : v6.11.2
npm  : 5.3.0
OS   : Windows 10

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : legacy

Uninstall this and reinstall version 6.4.0: ionic cordova platform remove android, ionic cordova platform add android@6.4.0.

Run ionic cordova requirements to find out if everything necessary is installed.