Including external jar (fobs4jmf) in generated jar
posted 5 years ago
I'm a long-time lurker but this is my first post here, so if i'm doing something wrong i'm very sorry and please let me know!
I've created a simple Java program to play movies, and have incorporated the fobs4jmf libraries into my program so that i can play different formats of files. I have been developing using eclipse and added the fobs4jmf and jmf jars to my project classpath, and if i run my program via eclipse it works fine.
However, i am now trying to create a jar for my program, using the eclipse inbuilt jar exporter. It seems to create a jar fine but when i come to run my program i get a "javax.media.NoPlayerException" which is consistent with the error i get if i have not included the jars in my project classpath. However i have checked the contents of the gnerated jar and the fobs4jmf.jar is included and within the generated manifest the classpath is definitely correct.
I have also tried using the netbeans exporter, Fatjar, and gnerating a jar by hand via the terminal.
Is there something special i have to do in order to generate jars that are dependant on other jars? I am developing on Windows 7 if that makes a difference at all...