On Mon, Jul 18, 2011 at 10:43 AM, lexmc <[email protected]> wrote: > I'm trying to run this code: > Map<String, Object> params = new HashMap<String, Object>(); > > params.put(MySQLDataStoreFactory.DBTYPE.key, "mysql"); > params.put(MySQLDataStoreFactory.HOST.key, > "localhost"); > params.put(MySQLDataStoreFactory.PORT.key, 3309); > params.put(MySQLDataStoreFactory.DATABASE.key, > dataBase); > params.put(MySQLDataStoreFactory.USER.key, user); > params.put(MySQLDataStoreFactory.PASSWD.key, password); > > DataStore > dataStore=DataStoreFinder.getDataStore(params); > featureSource = dataStore.getFeatureSource("test"); > > but MySQLDataStoreFactory is not recognised. What can I do to fix??? I'm > using geotools 8-snapshot.
Didn't anybody tell you already that keeping on using three question marks for each of your questions is going to piss off people? Nobody is happy to help someone that asks for help with an angry attitude. In any case, the most likely thing could be that you miss the jdbc driver from the classpath, alternatively, the connection cannot be established with those parameters. Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
