The SymjaRepl supports the usage of the Symja Computer Algebra library in a CheerpJ (version > 4.1) browser environment.
Currently the nightly builds (>= 20250907_2731) https://cjrtnc.leaningtech.com/20250907_2731/loader.js fixes some important bugs.
- Clone the corresponding SymjaRepl repository repository and build the
SymjaREPLJAR using Maven. - Open a terminal in the SymjaREPL directory.
- Run the following Maven command to clean and package the project:
mvn clean package verify
This process will:
- Compile the source code.
- Resolve all dependencies.
- Use the Maven Shade Plugin to package a self-contained JAR (
SymjaREPL-3.1.0-SNAPSHOT-shaded.jar) in the/targetdirectory. This JAR contains all dependencies. - Use the Proguard Shade Plugin to create a minimized, self-contained JAR (
SymjaREPL-3.1.0-SNAPSHOT-obfuscated.jar) in the/targetdirectory. This JAR is optimized for size.
Prepare the JAR for the web environment:
- Now clone the
SymjaCheerpJrepository to a new folder on your local file system. - Copy the generated JAR from
SymjaREPL/target/SymjaREPL-3.1.0-SNAPSHOT-obfuscated.jartoSymjaCheerpJ/SymjaREPL-3.1.0-SNAPSHOT-obfuscated.jarin your project root folder. - Serve the folder via HTTP
- Use a simple HTTP server, for example:
npx http-server -p 8080
Open your browser at:
http://localhost:8080/index.html
Note: Opening the web page directly from the disk (for example, by double-clicking on it) is not supported.
