Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » JDBC driver not found from Eclipse but running fine standalone
JDBC driver not found from Eclipse but running fine standalone [message #990590] Thu, 13 December 2012 10:32
Durgarao ADARI is currently offline Durgarao ADARIFriend
Messages: 2
Registered: November 2012
Junior Member
Hi,

When I run the below code from Command prompt it is running fine and producing proper output. But when I run from Eclipse I am getting SQLException:No suitable driver found for jdbc:sybase:Tds:InduChennai:5003.

I am using default JDBC ODBC driver which comes packed in rt.jar. This jar file is already available in JRE System Library of the package. Can someone suggest me what could be missing.
Full source file attached. Specific code snippet is

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url = "jdbc:sybase:Tds:InduChennai:5003" ;
conn =DriverManager.getConnection( url, "sa", "INDrda123" ) ;

Thanks in advance
-Durga
  • Attachment: SybTest.java
    (Size: 1.70KB, Downloaded 260 times)
Previous Topic:Eclipse java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
Next Topic:eclipse for PHP showing changes but not saving them
Goto Forum:
  


Current Time: Fri Apr 19 04:51:13 GMT 2024

Powered by FUDForum. Page generated in 0.02885 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top