Skip to content

Instantly share code, notes, and snippets.

@rupeshtiwari
Last active December 7, 2023 01:31
Show Gist options
  • Save rupeshtiwari/a4b78077a6bfb6db88bcb09c469372db to your computer and use it in GitHub Desktop.
Save rupeshtiwari/a4b78077a6bfb6db88bcb09c469372db to your computer and use it in GitHub Desktop.
Getting Started with Cordova | Create Your First Android/IOS Application

Installation Guide for Cordova On Windows

Installing Cordova on Windows

  • Install Node.js ( get the download file from http://nodejs.org)
  • Confirm Node.js is installed by running node --version
  • Install Git ( get the download file from http://git-scm.com. )
  • Install Cordova Npm Package run the script npm i -g cordova ( Make sure you open cmd / powershell on administrator mode ) install cordova in windows nodejs
  • Confirm Cordova is intalled by running cordova --version check cordova version

Installing Java on Windows

You need to install Java Development Kit (JDK) If you already have installed it then check it by running below script in cmd or powershell:

javac -version

If JDK is not installed you will see below error:

C:\Windows\system32>javac -version
'javac' is not recognized as an internal or external command,
operable program or batch file.

java jdk not installed

In order for installing JDK go to this URL (https://www.oracle.com/technetwork/java/javase/downloads/index.html)

Step 1: Install JDK & Configure Environment Variables

  • Download the JDK EXE and install it on your local machine.

    download jdk exe

  • Once JDK is installed then go to the windows environment variables

    • Add the jdk bin folder path (C:\Program Files\Java\jdk-12.0.1\bin) in both user and system path.

      search for edit environment variables in windows configuring environment variables for jdk bin folder

    • Add new entry called as JAVA_HOME with Value being the installed location of the JDK for me it is C:\Program Files\Java\jdk-12.0.1 create java home on windows environment variables confirm java home on environment variables

@ientropic
Copy link

Is there a second part to this? It stops after adding the browser platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment