I’m trying to use the Tamino API for Java to Access Tamino,but i keep getting this error message,
Exception in thread “main” java.lang.NoSuchMethodError
at com.softwareag.tamino.db.API.connection.TConnectionImpl.(TCon
nectionImpl.java:368)
at com.softwareag.tamino.db.API.connection.TConnectionFactory.newConnect
ion(TConnectionFactory.java:71)
at TaminoAccess.main(TaminoAccess.java:22)
for the simple code:
import com.softwareag.tamino.db.API.accessor.;
import com.softwareag.tamino.db.API.common.;
import com.softwareag.tamino.db.API.connection.;
import com.softwareag.tamino.db.API.objectModel.;
import com.softwareag.tamino.db.API.objectModel.dom.;
import com.softwareag.tamino.db.API.response.;
import com.softwareag.tamino.db.api.io.;
import com.softwareag.tamino.db.API.;
import org.w3c.dom.;
import java.io.;
public class TaminoAccess
{
public static void main(String args)
{
String dbURI;
TConnectionFactory connectionFactory=TConnectionFactory.getInstance();
try
{
TConnection connection=connectionFactory.newConnection(“http://taminot.mot.gov.il/tamino/MOTDB/MOIN_CN”);
System.out.println(connection.toString());
}
catch(Exception e)
{
System.out.println(e.getMessage());
}
}
}
what am i doing wrong?
Regards,
Guy
I think this is purely a classpath problem. Ensure that the classpath is correctly setup prior to executing your class. The classpath must include TaminoAPI4J (if not you get the exception you recieved) and must also include the log4j and xerces jar files.