-2

I am facing JAVA_HOME invalid problem.

I have followed these steps:

  1. npm install -g cordova ionic

  2. ionic start myApp tabs

  3. cordova platfomr add android

  4. Installed JDK jdk1.8.0_91

  5. Set JAVA_HOME path as "C:\Program Files\Java\jdk1.8.0_91\bin" in Environment variables

But I am still getting this error: Error: Failed to run "javac -version", make sure that you have a JDK Installed

Ronan Boiteau
  • 9,608
  • 6
  • 34
  • 56

1 Answers1

2

Actually you have to put "C:\Program Files\Java\jdk1.8.0_91\bin" in PATH variable so it will be accessible from the prompt.

Rishikesh Teke
  • 408
  • 3
  • 10