Did you add any jar files to your compile-time and runtime classpaths? My JAI installation came with a file called jai_core.jar that contains that package (and another one called jai_codec.jar that probably contains accessory classes).
Joined: Jul 18, 2011
nops.. as i m using netbeans i think there is no need to set classpath as i have not set any and till now executed many programs... can you give the link from where these jar files can be downloaded and also the place where they are stored... thanks..
Joined: Sep 21, 2011
Assuming that you installed the JAI files you downloaded those jar files should be somewhere on your hard disk.
It does not matter how you compile or run a program - a classpath is involved, and it needs to contain all jar files the code needs. The NetBeans documentation will tell you how to do that with NB.