Package jline.cli

Class LineInstall

java.lang.Object
jline.cli.LineInstall

public final class LineInstall extends Object
Environment check for the JAR, mirroring MATLAB's lineInstall.

It verifies that the optional external dependencies used by some solvers are reachable and warns, without failing, when one is missing: the Java runtime, the LQNS binaries behind SolverLQNS (lqns, lqsim and qnsolver), JMT.jar behind the JMT solver, and the SageMath symbolic backend (the imperialqore/line-sage-rest Docker image, the JAR's only computer algebra system, required by the symbolic methods of SolverCTMC/SolverFluid).

The JMT probe asks SysUtils.jmtFindPath() rather than jmtGetPath(), so that a check reports a missing JMT instead of spending 50MB acquiring one. An environment check must not change the environment it is reporting on.

Run it with java -cp jline.jar jline.cli.LineInstall.

  • Method Details

    • check

      public static boolean check()
      Runs the checks and prints warnings to stderr.
      Returns:
      true when everything is in place, false when a warning was issued
    • main

      public static void main(String[] args)