• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JAI ImageIO.read gives IllegalArgumentException

 
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 = ImageIO.read(chooser.getSelectedFile().toURL());

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,
Rachel
[ November 09, 2004: Message edited by: Rachel Swailes ]
 
Ranch Hand
Posts: 776
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?

Guy
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic