Hi i'm new using Geo Tools, and i need a little of help....

I have this code :
package geotools;
import java.io.File;
import java.net.URL;
import org.geotools.data.shapefile.ShapefileDataStore;
import org.geotools.data.FeatureSource;
import org.geotools.data.FeatureResults;



/**
 *
 * @author root
 */
public class Main {

    /** Creates a new instance of Main */
    public Main() {
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        try { URL inUrl = null;
File inFile = new File("/colonias.shp");
inUrl = inFile.toURL();
ShapefileDataStore inStore = new ShapefileDataStore(inUrl);
String inName = inStore.getTypeNames()[0];
FeatureSource source = inStore.getFeatureSource(inName);
FeatureResults fsShape = source.getFeatures();
}
catch (Exception e) { System.out.println("Oops! Something went wrong :-(");
e.printStackTrace(); }
System.exit(0);
}

    }


This code compile , but when i try to run , this append:

31/10/2007 03:14:07 PM FactoryRegistry scanForPlugins
ADVERTENCIA: Can't load a service for category "MathTransformProvider".
Cause is "NoClassDefFoundError: javax/media/jai/WarpAffine".


I download the Jai.jar , but it still without work...

I hope you can answer me...
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to