ClassNotFoundException javax.media.jai.OperationRegistrySpi but the class is there
<p>I have two similar projects working with Jai and one runs smoothly while the other stops when calling RenderedOp class from the jai_core.jar library, saying that it can't find the class OperationRegistrySpi. </p>

<p><strong>Both</strong> classes exist within that jar.</p>

<pre><code>RenderedOp imagen = JAI.create("stream",imgTif ); //This line throws the exception
</code></pre>

<p>The log goes like this:</p>

<pre><code>GRAVE: &gt;&gt;java.lang.NoClassDefFoundError: javax/media/jai/OperationRegistrySpi
&gt;&gt;java.lang.ClassNotFoundException: javax.media.jai.OperationRegistrySpi
&gt;&gt;  at java.net.URLClassLoader$1.run(Unknown Source)
&gt;&gt;  at java.security.AccessController.doPrivileged(Native Method)
&gt;&gt;  at java.net.URLClassLoader.findClass(Unknown Source)
&gt;&gt;  at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source)
&gt;&gt;  at java.lang.ClassLoader.loadClass(Unknown Source)
&gt;&gt;  at java.lang.ClassLoader.loadClass(Unknown Source)
&gt;&gt;  at java.lang.ClassLoader.defineClass1(Native Method)
&gt;&gt;  at java.lang.ClassLoader.defineClassCond(Unknown Source)
&gt;&gt;  at java.lang.ClassLoader.defineClass(Unknown Source)
&gt;&gt;  at java.security.SecureClassLoader.defineClass(Unknown Source)
&gt;&gt;  at java.net.URLClassLoader.defineClass(Unknown Source)
&gt;&gt;  at java.net.URLClassLoader.access$000(Unknown Source)
&gt;&gt;  at java.net.URLClassLoader$1.run(Unknown Source)
&gt;&gt;  at java.security.AccessController.doPrivileged(Native Method)
&gt;&gt;  at java.net.URLClassLoader.findClass(Unknown Source)
&gt;&gt;  at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source)
&gt;&gt;  at java.lang.ClassLoader.loadClass(Unknown Source)
&gt;&gt;  at java.lang.ClassLoader.loadClass(Unknown Source)
&gt;&gt;  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
&gt;&gt;  at java.lang.ClassLoader.loadClass(Unknown Source)
&gt;&gt;  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1595)
&gt;&gt;  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
&gt;&gt;  at java.lang.Class.forName0(Native Method)
&gt;&gt;  at java.lang.Class.forName(Unknown Source)
&gt;&gt;  at com.sun.media.jai.util.Service$LazyIterator.next(Service.java:267)
&gt;&gt;  at javax.media.jai.OperationRegistry.registerServices(OperationRegistry.java:2047)
&gt;&gt;  at javax.media.jai.ThreadSafeOperationRegistry.registerServices(ThreadSafeOperationRegistry.java:612)
&gt;&gt;  at javax.media.jai.OperationRegistry.initializeRegistry(OperationRegistry.java:365)
&gt;&gt;  at javax.media.jai.JAI.&lt;clinit&gt;(JAI.java:560)
</code></pre>

<p>I have configured the Build Path and the jar file location is the same for the working project and the buggy one.</p>

<p>I'm on Eclipse.</p>