This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes JAI gives IllegalArgumentException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "JAI gives IllegalArgumentException " Watch "JAI gives IllegalArgumentException " New topic

JAI gives IllegalArgumentException

Rachel Swailes
Ranch Hand

Joined: May 18, 2004
Posts: 434
Hi there

I recently suffered a windows crash and subsequent formatting of hard drive and getting my apps up and running is proving to be a total mission!

I am using JAI to handle images like bmp and tiffs and I am having trouble when loading a bmp using

BufferedImage image =;

When I call this statement from my IDE (which runs the app from the java home dir) I have no problem. This was after setting the classpath to represent the jai jars.

When I call this statement when executing my app from any other place, I get the IllegalArgumentException. I guess the ImageReaders can't be seen for some reason.

Does anyone know how I can fix this?

Many kind regards,
[ November 09, 2004: Message edited by: Rachel Swailes ]
Guy Allard
Ranch Hand

Joined: Nov 24, 2000
Posts: 776
Rachel - Was the previous install of JAI the same as what you did after reformat?

I am thinking specifically about did you install the DLL/.so's versus the .jar only solutions?

Have you asked this in the JAI interest group forum?

I agree. Here's the link:
subject: JAI gives IllegalArgumentException
It's not a secret anymore!