Results 1 to 2 of 2
  1. #1
    roughjj is offline Member
    Join Date
    Sep 2009
    Posts
    13
    Rep Power
    0

    Arrow JAI-API <<kmeansclustering>>

    I am using Jcreator with new jdk1.6

    i have installed JAI-API and tryout the worked examples.

    I have compiled and execute the kmeansclustering.java files where i have to give two image arguments in the array

    e.g as input and output file names

    test1.tiff,test2.tiff

    i have the following errors
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1

    Java Code:
     public static void main(String[] args)
        {
    
        new DemoKMeansImageClustering(args[0],args[1]);
        }
      
      }

  2. #2
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    6

    Default

    Java doesn't support tiff through ImageIO, but that doesn't appear to be your problem. You have an java.lang.ArrayIndexOutOfBoundsException which probably means you did not supply the app with enough parameters, or you have a loop reading too far somewhere.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •