سلام ببخشید که سوال ساده ای میپرسم ولی خیلی درگیرم کرده !
لطفا جواب بدید خیلی مشغولم کرده .من دارم از کوردوا استفاده میکنم و برنامه ام رو کامپایل میکنم ولی مشکل من اینکه جاوا (jdk,jre) نصب کردم و به ویندوز شناختم !ولی بازم موقع خروجی برنامه ارور میده و میگه که JAVA_HOME نادرست هست !
کد خطا :
You have been opted out of telemetry. To change this, run: cordova telemetry on.
ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
JAVA_HOME=D:\JAVA\bin
Subproject Path: CordovaLib


ERROR: JAVA_HOME is set to an invalid directory: D:\JAVA\bin


Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
(node:9200) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 1
at ChildProcess.whenDone (D:\VinoosProject\test\platforms\android\cordova\n ode_modules\cordova-common\src\superspawn.js:169:23)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:961:16)


at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
(node:9200) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:9200) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.


_________________________
اینا کد هایی هستن که نمایش داده میشن !
ولی هر کاری کردم نشد که نشد خروجی بگیرم !
درضمن جاوا توی خط فرمان شناسایی میشه و مشکل نداره sdk هم سالم و کامله .
ویندوز 10 دارم .