ealione
ealione

Reputation: 1636

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?

Upvotes: 2

Views: 2573

Answers (2)

Mick Mnemonic
Mick Mnemonic

Reputation: 7956

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.

Upvotes: 7

Razib
Razib

Reputation: 11173

A good way to search what is the latest version of a jar file from maven repository. Also you can download it from here. It says the latest version of this jar is 1.2.

In eclipse you don't need to install the jar. It is a good way to make a lib directory under your main project directory. After place all of your jar file in this directory. Then add all those jar file in buildpath using eclipse. You can see a step by step instruction How to Add JARs to Eclipse Buildpath

Hope it will help.
Thanks.

Upvotes: 1

Related Questions