A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Other JSE/JEE APIs
JAI ImageIO.read gives IllegalArgumentException
Joined: May 18, 2004
Nov 09, 2004 00:47:00
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
image = ImageIO.read(chooser.getSelectedFile().toURL());
When I call this statement from my IDE (which runs the app from the
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
. 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 ]
Joined: Nov 24, 2000
Nov 15, 2004 18:50:00
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 ImageIO.read gives IllegalArgumentException
ejbStore is being called intermittently.
Loading JPG with JAI
remove() is not removing the record from the database
com.sun.tools.javac.Main is not on the classpath With JBOSS
Error reading image from InputStream
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014