You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have followed the instructions to upgrade the version of JavaCV to 1.5.11-SNAPSHOT. However, I encountered an issue: after the upgrade, my program runs fine on macOS when packaged into a JAR, but it fails to run on Linux, with the following error:
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.ffmpeg.global.avutil
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.bytedeco.javacpp.Loader.load(Loader.java:1289)
at org.bytedeco.javacpp.Loader.load(Loader.java:1234)
at org.bytedeco.javacpp.Loader.load(Loader.java:1210)
at org.bytedeco.ffmpeg.avformat.Read_packet_Pointer_BytePointer_int.(Read_packet_Pointer_BytePointer_int.java:45)
at org.bytedeco.javacv.FFmpegFrameGrabber.(FFmpegFrameGrabber.java:372)
at com.sankuai.ai.speech.platform.codec.decoder.javacvdecoder.JavaCVDecoder.(JavaCVDecoder.java:84)
at com.sankuai.ai.speech.platform.codec.uitls.DecodeUtils.decode(DecodeUtils.java:98)
at com.sankuai.ai.speech.platform.api.gateway.component.AudioNormalizeComponent.process(AudioNormalizeComponent.java:79)
#2256
I have followed the instructions to upgrade the version of JavaCV to 1.5.11-SNAPSHOT. However, I encountered an issue: after the upgrade, my program runs fine on macOS when packaged into a JAR, but it fails to run on Linux, with the following error:
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.ffmpeg.global.avutil
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.bytedeco.javacpp.Loader.load(Loader.java:1289)
at org.bytedeco.javacpp.Loader.load(Loader.java:1234)
at org.bytedeco.javacpp.Loader.load(Loader.java:1210)
at org.bytedeco.ffmpeg.avformat.Read_packet_Pointer_BytePointer_int.(Read_packet_Pointer_BytePointer_int.java:45)
at org.bytedeco.javacv.FFmpegFrameGrabber.(FFmpegFrameGrabber.java:372)
at com.sankuai.ai.speech.platform.codec.decoder.javacvdecoder.JavaCVDecoder.(JavaCVDecoder.java:84)
at com.sankuai.ai.speech.platform.codec.uitls.DecodeUtils.decode(DecodeUtils.java:98)
at com.sankuai.ai.speech.platform.api.gateway.component.AudioNormalizeComponent.process(AudioNormalizeComponent.java:79)
The dependencies I am using are:
`
org.bytedeco
javacpp
1.5.11-SNAPSHOT
org.bytedeco
javacv
1.5.11-SNAPSHOT
`
What is the reason for this?
The text was updated successfully, but these errors were encountered: