inet.env is a Lycia configuration file that contains environment variables used at runtime when running applications via LyciaDesktop and LyciaWeb.
Querix Package Manager doesn't create inet.env.
By default, 4gl applications are successfully executed at runtime and do not need a custom environment.
However, you might need to change your Lycia environment, for example,
This can be easily done in custom inet.env by setting different environment variables.
These are environment variables that are most often set in inet.env:
Here you can read more about different environment variables and their possible values.
inet.env doesn't have any specific structure.
When you have only created it, inet.env is absolutely empty and doesn't include any environment variables.
You must add environment variables according to their definition rules.
For example, different environment variables can take these kinds of parameters:
any non-empty value:
QX_UNL = 1
a list of one or more characters:
QXDEBUG = mv
one or more predefined values:
LYCIA_SEVERITY = error
a path / paths to a file or a folder:
FGLIMAGEPATH=%FGLIMAGEPATH%;.;C:\Program Files\Querix\Lycia\images
You can read these definition rules in every page about environment variables, e.g., here, here, here, or here.
At runtime, environment variables are applied one-by-one in the order they are defined in inet.env.
For example, here QXDEBUG will be applied before QX_COMPAT:
QXDEBUG = mv
QX_COMPAT = Informix4GL
There is no specific order in which you must define environment variables in inet.env.
But there are moments you should keep in mind:
If you accidentally define one and the same environment variable multiple times in one inet.env, the last value will be applied at runtime.
For example, in this situation:
QXDEBUG = UuBbSsEedPptLlCcmGOzAzKzQzTzVv
QX_COMPAT = Informix4GL
QXDEBUG = mv
you will get less detailed logs (as compared to the original value).
If you use the value of one environment variable (= v1) as a value for another environment variable (= v2), v1 must go before v2.
Correct order:
LYCIA_DIR=C:\Program Files\Querix\Lycia
FGLLDPATH=%LYCIA_DIR%\my_4gl_libs;%LYCIA_DIR%\my_4gl_libs
Wrong order:
FGLLDPATH=%LYCIA_DIR%\my_4gl_libs;%LYCIA_DIR%\my_4gl_libs
LYCIA_DIR=C:\Program Files\Querix\Lycia
As inet.env is used to configure the environment in which your 4gl applications are executed, it is tightly bound with application server instances.
This means that every inet.env must be
specified for this application server instance in listener.xml:
<envfile>C:\my_projects\my_configs\my_environment</envfile>
By default, Lycia comes with two application instances – default and secure.
Default location for custom inet.env is
We recommend you to work with these two in-box application server instances and save your inet.env in the default location.
However, if you want to save your inet.env to any other location, you must specify this location in listener.xml.
If you do not specify it in listener.xml., your inet.env will not be loaded and applied at runtime.
There are two ways to create custom inet.env:
Method 1.
To create inet.env from LyciaStudio, please follow these steps:
Step 1. Exit all 4gl applications, if any.
[menu bar] → Window → Preferences → 4GL → Run/Debug → Application Servers
Now you can add all the necessary environment variables and set their values.
Step 6. Save your changes.
Step 7. Rerun you 4gl applications, if any.
This method works only for creating the first custom inet.env. If you already have one such file and want to create the second, you must use another method (below).
Method 2.
To create inet.env in a text editor, please follow these steps:
Step 1. Exit all 4gl applications, if any.
Step 2. Open your favorite text editor.
Step 3. Set all the necessary environment variables in a new file.
By default, you must save this file to:
If necessary, you may save your custom inet.env to any convenient location.
But you must specify the path to this location for the tag, <envfile>...</envfile>, in listener.xml.
You can check whether Lycia has loaded your inet.env, in the LyciaStudio preferences:
[menu bar] → Window → Preferences → 4GL → Run/Debug → Application Servers
In this window, you must select the default application server instance and press Edit Environment:
If everything is OK, LyciaStudio will open your inet.env.
Step 6. Rerun you 4gl applications, if any.
To modify an existing AppServer instance, please follow these steps:
Step 1. Exit all 4gl applications, if any.
[menu bar] → Window → Preferences → 4GL → Run/Debug → Application Servers
Corresponding inet.env will be opened in LyciaStudio.
Step 4. Add all the necessary environment variables and set their values.
Step 5. Save the changes.
Step 6. Rerun you 4gl applications, if any.
You cannot delete inet.env from LyciaStudio.
To delete your inet.env, please follow these steps:
Step 1. Exit all 4gl applications, if any.
By default, it is
Step 3. Delete inet.env from this folder.