Running Cangjie Executable Programs

Running Directly

Linux / macOS

  1. Deploy the runtime libraries by referring to Deploying the Cangjie Runtime.

  2. Copy the compiled executable file main to the operating environment and run the executable file.

    ./main
    

    Note that the executable file main compiled using cjpm is stored in the target/release/bin directory.

Windows

  1. Deploy the runtime libraries by referring to Deploying the Cangjie Runtime.

  2. Copy the compiled executable file main.exe to the operating environment and run the executable file.

    .\main.exe
    

    Note that the executable file main.exe compiled using cjpm is stored in the target\release\bin directory.

Running with cjpm

Developers often use cjpm to manage, compile, and run Cangjie projects.

Developers can install the complete Cangjie toolchain in the operating environment by referring to Installing the Cangjie Toolchain. After the installation is complete, copy the entire Cangjie project to the operating environment and execute the cjpm run command to run the Cangjie project.