Open kadraman opened 1 year ago
The same/similar issue was reported recently by an fcli user, note that this only applies to fcli.jar as we currently don't initialize Jansi for the native Linux executable (Linux executable is statically linked, so dynamic loading of libraries is not supported).
This is an error message generated by the Java runtime, so not sure whether we can suppress this, for example by temporarily overriding System.out
/System.err
to suppress any output while initializing Jansi. Even if this is possible, we need to carefully look into this as Jansi itself also overrides System.out
and System.err
during initialization.
Alternatively, potentially we could skip initializing Jansi on certain platforms (like we already do for native Linux binary), or even skip initialization on any Linux platform (or removing the dynamically linked Linux library from fcli.jar). From memory, we could still use ANSI codes with picocli for example, but not using the native library has a small performance impact.
When running fcli on RHEL Linuxusing the Java distribution the following errors are shown:
This does not stop the successful running of fcli but the error messages and confusing/annoying.
FCLI 1.10 running on RHEL 7.9