Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
  HXTT DBF v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v6.1
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.0
Offshore Outsourcing
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

HXTT DBF
When load the driver return null
Alejandro Gonzalez Barba
2012-04-10 08:27:41.0
Hi when i try load the driver,
Class.forName("com.hxtt.sql.dbf.DBFDriver").newInstance();

I received a (con = null), don't received a message of error, my code is, the version is for 1 server only

Version DBF_JDBC41.jar

My code:
try {

Properties properties = new Properties();
properties.setProperty("lockTimeout", "1000");
properties.setProperty("charSet", "ISO8859_1");
properties.setProperty("delayedClose", "0");
properties.setProperty("DefaultCDXExtension", "CDX");
properties.setProperty("user", "auditoria");
properties.setProperty("password", "audi");

Class.forName("com.hxtt.sql.dbf.DBFDriver").newInstance();
String url = "jdbc:dbf:///" + SIP + "/" + SAlias;
con = DriverManager.getConnection(url, properties);

} catch (java.lang.ClassNotFoundException e) {
} catch (Exception e) {
System.out.print(e.getMessage());
} finally {
return con; // all the time the value is null
}

Re:When load the driver return null
HXTT Support
2012-04-10 17:22:11.0
Pleae check your classpath, and add one code lin in catch ClassNotFoundException .

} catch (java.lang.ClassNotFoundException e) {
//You should add that line.
System.out.print(e.getMessage());
} catch (Exception e) {
System.out.print(e.getMessage());
}

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Sitemap