I am working on a Java application that uses a USB ImagingSource camera. I get the following error when a function using the camera is opened:
java.lang.NoClassDefFoundError: Could not initialize class javax.media.jai.JAI
The searching I've done suggests it may have to do with having multiple instances of the same library open. Looking through the libraries in this project, I find four files: jai_core.jar JAI-codec.1.1.1.jar JAI-codec.1.1.1.jar jai_windows-i586.jar
Now, presumably the second JAI-codec.1.1.1.jar needs to be removed, but jai-core.jar is by itself, and is the only one that contains javax.media.jai.JAI. Other thoughts as to the cause of this error?
EDIT: NEW QUESTION: I have found what may be the problem. Apparently there is supposed to be a file in my jre/bin folder called mlibwrapper.dll. It ain't there. Unfortunately, I can't seem to find the proper JAI installer that would contain this file. Seems that the Oracle change has made all the links I've found outdated?