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.
Table of Contents
1. PHP
Installation
- Download the VS16 x64 Thread Safe zip file from windows.php.net.
- Extract the contents to a folder, e.g.,
C:\php. - Rename
php.ini-developmenttophp.iniin that folder. - Add
C:\phpto your System Environment Variables under Path. - Open Command Prompt and type
php -vto 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
- Download the JDK installer (x64 Installer) from Oracle or Adoptium (OpenJDK).
- Run the installer and follow the on-screen instructions.
- Ensure the "Set JAVA_HOME variable" feature is selected if available, or manually set
JAVA_HOMEto your installation directory (e.g.,C:\Program Files\Java\jdk-17). - Verify by running
java -versionin 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
Installation
- Download the command-line compiler from the Kotlin GitHub Releases page.
- Extract the zip file to a directory, e.g.,
C:\kotlin. - Add the
bindirectory (e.g.,C:\kotlin\bin) to your System Environment Variables under Path. - 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
- Download the LTS (Long Term Support) Windows Installer (.msi) from nodejs.org.
- Run the installer. Ensure "Add to PATH" is selected during installation.
- Verify installation by running
node -vandnpm -vin 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
Installation
- Open your terminal or Command Prompt.
- Install TypeScript globally using npm:
npm install -g typescript - 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
- Download the latest Windows installer from python.org.
- Run the installer. Important: Check the box that says "Add Python to PATH" at the bottom of the first screen.
- Click "Install Now".
- Verify by running
python --versionorpy --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
- Download the Microsoft Windows MSI installer from go.dev.
- Run the installer and follow the prompts. It will automatically add Go to your Path.
- 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
- Download the MSI package from the official MariaDB website.
- Run the installer and follow the instructions.
- During installation, you will be asked to set a password for the
rootuser. Make sure to remember this password. - Complete the installation.
- 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 -pin Command Prompt.
9. PostgreSQL
Installation
- Download the Windows installer from the PostgreSQL website.
- Run the installer.
- Select the components you want to install (pgAdmin 4 is recommended for GUI management).
- Set a password for the database superuser (
postgres). - Keep the default port (5432) unless you have a specific reason to change it.
- Complete the installation.
- You can verify by opening pgAdmin 4 or running
psql -U postgresin Command Prompt (if added to PATH).