7. Configure the Runtime

7A. Add Variables to the inet.env File

7B. Edit the VS Code Settings for Runtime (LVSCE)

7A. Add Variables to the inet.env File

Purpose: inet.env is a Lycia configuration file that contains environment variables used at runtime when running applications using LVSCE.

Creation: QPM does not create inet.env by default. You might need to create a custom inet.env if you want to customize the runtime environment (e.g., for debugging, compatibility mode).

Common Environment Variables set in inet.env:

Structure: inet.env does not have a specific structure. Environment variables are applied one-by-one in the order they are defined. If a variable is defined multiple times, the lastly defined value is applied. If a variable relies on another (v1 uses v2), v2 must be defined before v1.

inet.env and AppServer Instances: Every inet.env file is created for a specific application server instance, and its location must be defined in listener.xml using the <envfile> tag. The default location for inet.env is /opt/Querix/Lycia/etc/inet.env.

7B. Edit the VS Code Settings for Runtime (LVSCE)

Note: Usually, for runtime settings you would need the inet.env file only. Settings.json can be used for additional configurations, and the values set in this file will redefine and extend the values set in inet.env.

Settings Files: LVSCE runtime behavior is influenced by the settings.json files (user, workspace, folder settings) and <workspace_name>.code-workspace.json for the workspace.

Accessing Settings: In VS Code, go to File → Preferences → Settings, or press CTRL + SHIFT + P and select Preferences: Open User Settings. Filter settings by typing Lycia in the search bar.

The Key LVSCE Runtime Settings:

Settings Precedence: LVSCE settings are applied in this order:

Program-level Runtime Configuration: For individual programs, the runtime environment can be configured using fgl_setenv() and fgl_putenv() functions within the 4GL code itself.

 

See next: 8. Configure Jetty (Lycia Web Server)

 

Contact Us

Privacy Policy

Copyright © 2026 Querix, (UK) Ltd.