I have a java web application that uses vlc4j library to download videos from a camera. On ceratin cases it is crashing my entire application. Debugging the problem is the way forward, however, analyzing the native code is not something that would work out as an immediate solution.
I was looking at design options or other sandbox or programmatic ways that would help to prevent native crash killing my tomcat.
The workaraound am planning to implement as of now is to make the java code that calls the native code as a separate utility application and run it in a separate jvm process from within tomcat.
However, it looks more like a workaround. Does java not have a way of catching these native crashes?, because there have been lot of questions related to this for Android and most solutions there are more of hacks than a proper solution.