Windows Installation & Running Guide

This knowledge base provides step-by-step instructions for installing the runtime environments and running applications for PHP, Java, Kotlin, Node.js, Python, and Go on Windows.

1. PHP

Installation

  1. Download the VS16 x64 Thread Safe zip file from windows.php.net.
  2. Extract the contents to a folder, e.g., C:\php.
  3. Rename php.ini-development to php.ini in that folder.
  4. Add C:\php to your System Environment Variables under Path.
  5. Open Command Prompt and type php -v to verify.

Running an Application

To run a PHP script:

php app.php

To start a built-in web server:

php -S localhost:8000

Application Manual

Please also read manual.html which is automatically generated by MagicAppBuilder when you generate the application.

Alternatively, you can use Magic Server.

2. Java

Installation

  1. Download the JDK installer (x64 Installer) from Oracle or Adoptium (OpenJDK).
  2. Run the installer and follow the on-screen instructions.
  3. Ensure the "Set JAVA_HOME variable" feature is selected if available, or manually set JAVA_HOME to your installation directory (e.g., C:\Program Files\Java\jdk-17).
  4. Verify by running java -version in Command Prompt.

Running an Application

To compile and run a source file:

javac Main.java
java Main

To run a JAR file:

java -jar application.jar

Running a Spring Boot Application

If your project uses the Maven Wrapper (mvnw):

mvnw.cmd spring-boot:run

Application Manual

Please also read manual.html which is automatically generated by MagicAppBuilder when you generate the application.

3. Kotlin

Note: Kotlin requires the Java JDK to be installed first (see section above).

Installation

  1. Download the command-line compiler from the Kotlin GitHub Releases page.
  2. Extract the zip file to a directory, e.g., C:\kotlin.
  3. Add the bin directory (e.g., C:\kotlin\bin) to your System Environment Variables under Path.
  4. Verify by running kotlinc -version.

Running an Application

Compile to a JAR and run:

kotlinc hello.kt -include-runtime -d hello.jar
java -jar hello.jar

Running a Spring Boot Application

If your project uses the Maven Wrapper (mvnw):

mvnw.cmd spring-boot:run

Application Manual

Please also read manual.html which is automatically generated by MagicAppBuilder when you generate the application.

4. Node.js

Installation

  1. Download the LTS (Long Term Support) Windows Installer (.msi) from nodejs.org.
  2. Run the installer. Ensure "Add to PATH" is selected during installation.
  3. Verify installation by running node -v and npm -v in Command Prompt.

Running an Application

To run a JavaScript file:

node app.js

To run a project defined in package.json:

npm start

Application Manual

Please also read manual.html which is automatically generated by MagicAppBuilder when you generate the application.

5. TypeScript

Note: TypeScript requires Node.js and npm to be installed first (see Node.js section).

Installation

  1. Open your terminal or Command Prompt.
  2. Install TypeScript globally using npm:
    npm install -g typescript
  3. Verify the installation by checking the TypeScript version:
    tsc --version

Running an Application

To compile and run a TypeScript file:

tsc app.ts
node app.js

For projects using ts-node (a common practice):

npm install -g ts-node
ts-node app.ts

Application Manual

Please also read manual.html which is automatically generated by MagicAppBuilder when you generate the application.

6. Python

Installation

  1. Download the latest Windows installer from python.org.
  2. Run the installer. Important: Check the box that says "Add Python to PATH" at the bottom of the first screen.
  3. Click "Install Now".
  4. Verify by running python --version or py --version.

Running an Application

To run a Python script:

python app.py

Application Manual

Please also read manual.html which is automatically generated by MagicAppBuilder when you generate the application.

7. Go (Golang)

Installation

  1. Download the Microsoft Windows MSI installer from go.dev.
  2. Run the installer and follow the prompts. It will automatically add Go to your Path.
  3. Verify by running go version.

Running an Application

To run a source file directly:

go mod tidy
go run .

To build an executable and run it:

go build main.go
main.exe

Application Manual

Please also read manual.html which is automatically generated by MagicAppBuilder when you generate the application.

8. MariaDB

Installation

  1. Download the MSI package from the official MariaDB website.
  2. Run the installer and follow the instructions.
  3. During installation, you will be asked to set a password for the root user. Make sure to remember this password.
  4. Complete the installation.
  5. You can verify the installation by opening the "MySQL Client" (MariaDB adds this shortcut) or by adding the bin folder to your PATH and running mysql -u root -p in Command Prompt.

9. PostgreSQL

Installation

  1. Download the Windows installer from the PostgreSQL website.
  2. Run the installer.
  3. Select the components you want to install (pgAdmin 4 is recommended for GUI management).
  4. Set a password for the database superuser (postgres).
  5. Keep the default port (5432) unless you have a specific reason to change it.
  6. Complete the installation.
  7. You can verify by opening pgAdmin 4 or running psql -U postgres in Command Prompt (if added to PATH).