Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/jai/

843789Apr 22 2009 — edited Apr 22 2009
Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/jai/

After I got this exception, I tried the following solution:

I downloaded the Windows package for JAI from this link:

https://jai-imageio.dev.java.net/binary-builds.html

Then I went to the Projects window > Libraries (Netbeans IDE) and browsed to the two jar files in that download. The two jar files are now showing under the Libraries node and, accordingly, they are listed in my Classpath as this:

..\..\..\Desktop\jai-imageio-1_2-pre-dr-b04-lib-windows-i586-07_Apr_2009\lib\ext\jai_imageio.jar
..\..\..\Desktop\jai-imageio-1_2-pre-dr-b04-lib-windows-i586-07_Apr_2009\lib\ext\clibwrapper_jiio.jar

There also a couple of DLL files which I wasn't sure how to add.


So why am I still getting this error? Maybe it's the wrong version of JAI?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 20 2009
Added on Apr 22 2009
9 comments
3,111 views