I'm making a project to modify a .wav file to .flac file, I use the class http://javaflacencoder.sourceforge.net/javadoc/index.html. My project in IDE eclipse works well. But when I exported it into .jar and run it with command line on linux. There is the error:
Exception in thread "main" java.lang.NoClassDefFoundError: javaFlacEncoder/FLAC_FileEncoder
at speech.Speech.main(Speech.java:44)
Caused by: java.lang.ClassNotFoundException: javaFlacEncoder.FLAC_FileEncoder
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 1 more
Without idea, I can't understand why. Could anybody have the same problem? Could you show me how to resolve it? Thanks,