Javet
Javet copied to clipboard
Using `isSuppressingError` forces me to implement `getLibPath` as well
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.
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.