Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 25th, 2006, 08:42 PM
hafidz hafidz is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 7 hafidz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 2 m 47 sec
Reputation Power: 0
Jaybird problem.. Please help

org.firebirdsql.jdbc.FBDriver
SQLException: No suitable driver

what maybe causing these??

Im using Jaybird 2.1.1

Thanks in advance..

private String dbDriver = "org.firebirdsql.jdbc.FBDriver";
private String dbURL = "jdbc:firebirdsql://localhost/BELAJAR_DB.fdb";
private String username = "SYSDBA", password = "masterkey";

/////
private Connection conn;
private Statement stmt;


try {
Class.forName(dbDriver).newInstance();
}

catch(java.lang.Exception e) {


System.err.println(e.getMessage());
}

try {

conn = DriverManager.getConnection(dbURL, username, password);
}
catch(SQLException ex) {
System.err.print("SQLException: ");
System.err.println(ex.getMessage());
}

Reply With Quote
  #2  
Old December 26th, 2006, 01:18 AM
hafidz hafidz is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 7 hafidz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 2 m 47 sec
Reputation Power: 0
the error =
--------------------Configuration: <Default>--------------------
org.firebirdsql.jdbc.FBDriver
java.lang.ClassNotFoundException: org.firebirdsql.jdbc.FBDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at DB.connect(DB.java:22)
at DB.<init>(DB.java:16)
at MemberManager.getAllMembers(MemberManager.java:12)
at Test.main(Test.java:23)
SQLException: No suitable driver
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:545)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at DB.connect(DB.java:34)
at DB.<init>(DB.java:16)
at MemberManager.getAllMembers(MemberManager.java:12)
at Test.main(Test.java:23)

Process completed.

Reply With Quote
  #3  
Old December 26th, 2006, 04:20 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,917 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 3 Days 14 h 16 m 7 sec
Reputation Power: 279
Quote:
Originally Posted by hafidz
org.firebirdsql.jdbc.FBDriver
SQLException: No suitable driver

what maybe causing these??
Is the driver in your classpath?

Reply With Quote
  #4  
Old December 29th, 2006, 12:26 AM
hafidz hafidz is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 7 hafidz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 2 m 47 sec
Reputation Power: 0
Question Weird

Quote:
Originally Posted by pabloj
Is the driver in your classpath?
Nevermind,

Nevermind..

Ive already got it..

I have to extract the content of the driver .jar before can use it..

Any idea what maybe causing these??

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Jaybird problem.. Please help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT