JAI-API DisplayHistogramApp- Error

View: New views
3 Messages — Rating Filter:   Alert me  

JAI-API DisplayHistogramApp- Error

by jai-interest-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am newbee to JAI-API

Using WindowsXp and JDK1.6 or above

I have download the samples DisplayHistogram.java and DisplayHistogramApp.java
Compile and Execute with Jcreator 4.5

While i execute the DisplayHistogramApp.java the following errors:

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
    at DisplayHistogramApp.main(DisplayHistogramApp.java:51)

Line 51:  public static void main(String[] args)
    {
    PlanarImage image = JAI.create("fileload", args[0]);
    ParameterBlock pb = new ParameterBlock();

I would not identify the JAI-API.
Can anyone guide me on this....
Thanks in Advance
[Message sent by forum member 'jjt' (joshua.j.thomas@...)]

http://forums.java.net/jive/thread.jspa?messageID=362662

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...


Re: JAI-API DisplayHistogramApp- Error

by jai-interest-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

It looks like you might have run the app without giving it a command line argument for the image file to process.

Hope this helps,

Michael
[Message sent by forum member 'cafeanimal' (michael.bedward@...)]

http://forums.java.net/jive/thread.jspa?messageID=362676

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...


Re: JAI-API DisplayHistogramApp- Error

by jai-interest-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes. I made it!

I have used Jcreator options to prompt the argument then locate the file, it produce the histogram

Thanks
[Message sent by forum member 'jjt' (joshua.j.thomas@...)]

http://forums.java.net/jive/thread.jspa?messageID=362711

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...