Search code examples
javajai

How can I install and use JAI with Eclipse


I am following a tutorial that asks me to include

import javax.media.jai.TiledImage;

So basically I will have to install JAI. This is my very first beginning in Java though, and the first time I use Eclipse thus I have some problems with doing so.

Actually I cant even find where I am supposed to download it from as all links I find are quite old.

So my question has two parts:

Where can I find the official release of JAI?

How can I install it in Eclipse?


Solution

  • If you are looking for a JAR file that contains a class you'd need to use, the best place to start looking from is the FindJAR site. This will tell you that TiledImage is included in jai-core-1.1.3-alpha.jar which can be downloaded from a mirror site.

    The JAI project is no longer active and many of the JARs can't be found in public Maven repositories, so if you have a choice, you could consider using a more active project such as Apache Commons Imaging.