Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

Run-Java-Script-in-Delphi

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

Run-Java-Script-in-Delphi

This example illustrates how to incorporate JavaScript in Delphi, call Delphi objects in a script, exchange data between the main app and a script, and use Node.js modules.

The following article summarizes an experience using SpiderMonkey JavaScript to run scripts in Delphi: Getting started with SpiderMonkey to run JavaScript in Delphi

How to compile

  1. Download the latest stable release of the mORMot integration library
  2. Download the SpiderMonkey precompiled and prepared for mORMot binaries: SpiderMonkey52 DLLs
  3. Clone the FastMM4 repository.
  4. Add links to the following directories to Delphi Library Paths: "...mORMot", "...mORMot\SyNode", "...\mORMot\SQLite3", and "...FastMM4".
  5. Put downloaded SpiderMonkey DLLs near the app executable or add a link to these DLLs to the PATHS environment variable.

Enjoy.