Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I package a docker image, javacv 1.5.10 has bugs, but 1.5.9 is good #2276

Closed
phial3 opened this issue Aug 21, 2024 · 5 comments
Closed

Comments

@phial3
Copy link

phial3 commented Aug 21, 2024

image
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.<clinit>(Read_packet_Pointer_BytePointer_int.java:45)
	at org.bytedeco.javacv.FFmpegFrameGrabber.<clinit>(FFmpegFrameGrabber.java:366)
@steeveen
Copy link
Contributor

完整的代码发出来看一下呢,pom中的依赖,系统中的ffmpeg版本

@saudet
Copy link
Member

saudet commented Aug 21, 2024

Please try again with Ubuntu

@phial3
Copy link
Author

phial3 commented Aug 21, 2024

Please try again with Ubuntu

java project pom.xml

<dependency>
    <groupId>org.bytedeco</groupId>
    <artifactId>javacv-platform</artifactId>
    <version>1.5.10</version>
</dependency>

Dockerfile base image is :

FROM bellsoft/liberica-openjdk-alpine:8u412

@phial3
Copy link
Author

phial3 commented Aug 21, 2024

完整的代码发出来看一下呢,pom中的依赖,系统中的ffmpeg版本

javacv-platform 1.5.10 contains ffmpeg

@saudet
Copy link
Member

saudet commented Aug 21, 2024

Duplicate of bytedeco/javacpp-presets#1379

@saudet saudet marked this as a duplicate of bytedeco/javacpp-presets#1379 Aug 21, 2024
@saudet saudet closed this as completed Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants