Hi Which version of mapj are you using ? an old version i guess ?
Because there is no such constructor for TABDataProviderHelper in the api documentation.. Try this (i know that work in mapj3.0 and mapj4.0) TABTableDescHelper TabDesc = new TABTableDescHelper(filename); TABDataProviderHelper DPHelper = new TABDataProviderHelper(directory); hope this help Kind regards, __________________________________________________ Antoine Gilbert / [EMAIL PROTECTED] Analyst programmer KOREM GEObroadcasting Technologies __________________________________________________ 680, Charest East Blvd., Suite 120 Quebec (Quebec) G1K 3J4 Tel.: (418) 647-1555 Fax: (418) 647-1666 1 888 440-1MAP www.korem.com __________________________________________________ * MapInfo Canadian Partner of the Year - 2001 * Best New MapInfo Partner 2000 - North America __________________________________________________ -----Message d'origine----- De : Crompton, Mark [mailto:[EMAIL PROTECTED]] Envoyé : 9 avril, 2002 20:11 À : [EMAIL PROTECTED] Objet : MI-L MapXtreme Java - adding TAB Files All, I am having problems programmatically adding mapinfo TAB files. Here's the sample code straight from the book. TABTableDescHelper myTabDesc = new TABTableDescHelper(strTabFileToAdd); TABDataProviderHelper myDPHelper = new TABDataProviderHelper(strMapPath, false, false, false, false); MapXtremeDataProviderRef myMXDPRef = new MapXtremeDataProviderRef(myDPHelper, strServerName, nPort); The 2nd line will not compile with the following error. simplemap.java.442: cannot resolve symbol symbol : contructor TABDataProviderHelper (java.lang.String,boolean,boolean,boolean,boolean) location: class com.mapinfo.dp.tab.TABDataProviderHelper TABDataProviderHelper myDPHelper = new TABDataProviderHelper(strMapPath,false,false,false,fasle); the /\ is pointing to the 'new' comment. All 3 of the tab.TAB*.class files are imported. Any ideas? Thanks, Mark C --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]