caprica / vlcj

Java framework for the vlc media player
http://www.capricasoftware.co.uk/projects/vlcj
1.1k stars 260 forks source link

Cannot load LibVlc second time after providing wrong vlc path first time #1204

Closed SudoDios closed 6 months ago

SudoDios commented 8 months ago

java.lang.NoClassDefFoundError: Could not initialize class uk.co.caprica.vlcj.binding.lib.LibVlc How to fix it in v4.8.2

What is the way to double check that vlcj is installed properly ?

caprica commented 7 months ago

If the native library load fails, the static initialisation fails and you can't recover.

There might be an opportunity to improve this in a future version of vlcj, but for now, I'm afraid you're stuck with how it works currently.

SudoDios commented 7 months ago

Great! 👌