我正在使用javacv库通过屏幕快照构建视频,但是在使用java关闭钩子线程执行此操作时出现异常。 例外是noclassdeffounderror。
Exception in thread "Thread-3" java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.javacpp.Loader
at org.bytedeco.javacpp.avcodec$AVPacket.<clinit>(avcodec.java:1407)
at org.bytedeco.javacv.FFmpegFrameRecorder.<init>(FFmpegFrameRecorder.java:149)
at org.bytedeco.javacv.FFmpegFrameRecorder.<init>(FFmpegFrameRecorder.java:126)
at com.selenium.video.GenericRecorder.getRecorder(GenericRecorder.java:36)
at com.selenium.video.GenericRecorder.addImageToVideo(GenericRecorder.java:90)
at com.selenium.video.GenericRecorder.prepareVideo(GenericRecorder.java:74)
at com.selenium.video.GenericRecorder$1.run(GenericRecorder.java:58)
at java.lang.Thread.run(Thread.java:745)
如果在shutdownhook期间加载了类,是否存在问题?