bytedeco / javacv

Java interface to OpenCV, FFmpeg, and more
Other
7.54k stars 1.58k forks source link

Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.javacpp.avutil #1859

Open Zeroxcv opened 2 years ago

Zeroxcv commented 2 years ago

Why can the same jar package have no problems in windows and x86 architecture, but it will report errors in arm architecture.

the error: Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.javacpp.avutil at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at org.bytedeco.javacpp.Loader.load(Loader.java:585) at org.bytedeco.javacpp.Loader.load(Loader.java:530) at org.bytedeco.javacpp.avformat$AVFormatContext.(avformat.java:2819) at org.bytedeco.javacv.FFmpegFrameGrabber.startUnsafe(FFmpegFrameGrabber.java:468) at org.bytedeco.javacv.FFmpegFrameGrabber.start(FFmpegFrameGrabber.java:462)

my maven: image

saudet commented 2 years ago

We'll need to add builds for Windows on ARM. Contributions welcome!