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

NoClassDefFoundError: Could not initialize class org.bytedeco.javacv.FFmpegFrameGrabber with later version 1.5.9 #2173

Closed
verigle opened this issue Jan 19, 2024 · 7 comments

Comments

@verigle
Copy link

verigle commented Jan 19, 2024

NoClassDefFoundError: Could not initialize class org.bytedeco.javacv.FFmpegFrameGrabber
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.<clinit>(Read_packet_Pointer_BytePointer_int.java:45)
        at org.bytedeco.javacv.FFmpegFrameGrabber.<clinit>(FFmpegFrameGrabber.java:366)

pom :

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

use docker image alpine with openjdk8

@saudet
Copy link
Member

saudet commented Jan 19, 2024

Please try again with the snapshots: http://bytedeco.org/builds/

@verigle
Copy link
Author

verigle commented Jan 22, 2024

could you provider the offical docker image for javacv with Dockfile?

@saudet
Copy link
Member

saudet commented Jan 22, 2024

I'm using the images from GitHub Actions, not Docker

@saudet
Copy link
Member

saudet commented Jan 22, 2024

Ah, you're using Alpine, that won't work

@verigle
Copy link
Author

verigle commented Jan 22, 2024

GitHub Actions

can you tell me the envirenment of GitHub Actions , such as OS, lib

or can I find the same env in docker hub?

@saudet
Copy link
Member

saudet commented Jan 22, 2024

Duplicate of bytedeco/javacpp-presets#1379

@saudet saudet marked this as a duplicate of bytedeco/javacpp-presets#1379 Jan 22, 2024
@saudet saudet closed this as completed Jan 22, 2024
@saudet
Copy link
Member

saudet commented Jan 22, 2024

GitHub Actions uses Ubuntu: https://github.com/actions/runner-images

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

2 participants