How to use call_scilab?

I keep getting this error:

Could not load JVM dynamic library (libjava).
Error:   If you are using a binary version of Scilab, please report a bug http://bugzilla.scilab.org/.
If you are using a self-built version of Scilab, update the script bin/scilab to provide the path to the JVM.
The problem might be related to SELinux. Try to deactivate it.
Please also check that you are not trying to run Scilab 64 bits on a 32 bits system (or vice versa).

I use Windows 10. Maybe I'm missing some important steps?

Here is the code

#include <iostream>
#include "call_scilab.h"
#include "api_scilab.h"

int main()
    if (StartScilab(NULL, NULL, 0) == FALSE)
        fprintf(stderr, "Error while calling StartScilab\n");
        return -1;
    else {
        std::cout << "success" << std::endl;

Scilab 22-10-20, 5:55 p.m. silencefog
What you mentioned is quite fantastic, and I learned something new from it. run 3 also motivates me to work hard for the positive outcomes you consistently provide for this website.
12-09-22, 7:05 a.m. bameli

Because there are so many awesome mods in this fnf mods game, I don't have to look very far. It's the kind of game that I can play nonstop for hours on end without losing interest.
18-11-22, 8:38 a.m. tricken

Log-in to answer to this question.