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

Not being able to find a class definition for FFmpeg. #80

Closed
turbobrick opened this issue Dec 5, 2016 · 1 comment
Closed

Not being able to find a class definition for FFmpeg. #80

turbobrick opened this issue Dec 5, 2016 · 1 comment

Comments

@turbobrick
Copy link

While trying to test the library I've got this error...

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/MoreObjects
at net.bramp.ffmpeg.FFmpeg.(FFmpeg.java:34)
at test_mixer.OggEncoder.oggEncoder(OggEncoder.java:28)
at test_mixer.Main.recordAudio(Main.java:96)
at test_mixer.Main.main(Main.java:29)
Caused by: java.lang.ClassNotFoundException: com.google.common.base.MoreObjects
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 4 more

The paths that I have are the following ones...
String ffmpegPath = "C:\\Users\\Test\\EclipseWorkspace\\test_mixer\\ffmpeg\\bin\\ffmpeg.exe";
String ffprobePath = "C:\\Users\\Test\\EclipseWorkspace\\test_mixer\\ffmpeg\\bin\\ffprobe.exe";

Error is thrown while trying to instantiate the FFmpeg class. (I suposse the same will happen with the FFprobe class).
FFmpeg ffmpeg = new FFmpeg(ffmpegPath);

@bramp
Copy link
Owner

bramp commented Dec 5, 2016

See issues #70 (same issue as this).

Basically your project, or one of your dependencies is using a older version of Guava. Please ensure you are using at least version 18.0.

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