It sounds like you have omitted to put the promptShapeFile(args) method in your class.
It is defined in the lower part of this code: http://docs.codehaus.org/display/GEOTDOC/04+How+to+Read+a+Shapefile#04HowtoReadaShapefile-Application Hope this helps Michael 2008/11/18 fx5900 <[EMAIL PROTECTED]>: > > Hi, > > i'm reading the section about opening and wrting the shapefile on screen > http://docs.codehaus.org/display/GEOTDOC/09+ShapeLab, when i add this line > of code > File file = promptShapeFile(args); which is the first line of my applicaion, > i get error saying incompatible types java.io.File required but in my code i > have the following > > import java.io.File; > import org.geotools.factory.GeoTools; > import java.io.IOException; > > /** > * The application is used to display the shapefile > * > */ > public class App { > > public static void main(String[] args) throws Exception > { > System.out.println("GeoTools version is" + " " + > GeoTools.getVersion()); > File file = promptShapeFile(args); > } > } > > i've tried to also creat a new File instance, but i can seem to find a > method which has something to do with shapefile, any suggestions?? > > cheers > > -- > View this message in context: > http://www.nabble.com/09ShapeLab-tp20543003p20543003.html > Sent from the geotools-gt2-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Geotools-gt2-users mailing list > Geotools-gt2-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users