Javet icon indicating copy to clipboard operation
Javet copied to clipboard

Using `isSuppressingError` forces me to implement `getLibPath` as well

Open kozi opened this issue 3 years ago • 1 comments

JavetLibLoader.setLibLoadingListener(new IJavetLibLoadingListener() {
    @Override
    public boolean isSuppressingError(JSRuntimeType jsRuntimeType) {
        return true;
    }
});

If I add this example code to my project I have to implement the method getLibPath as well because the default implementation in the interface returns null.

kozi avatar Aug 04 '22 06:08 kozi

It's up to you to decide to either create a listener or set an env var to tell Javet to suppress that error. In you case, I would suggest you to set env var javet.lib.loading.suppress.error=true during the application initialization.

caoccao avatar Aug 04 '22 07:08 caoccao