Re: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
Posted by: natarajan nallusamy
Date: January 22, 2008 09:00AM

Class.forName( "com.mysql.jdbc.Driver").newInstance ();
System.out.println("-------------->class over");
con = DriverManager.getConnection("jdbc:mysql://localhost:3306/e-banking", user, pass);
System.out.println("-------------------->connection over");
st = con.createStatement();
res = st.executeQuery("SELECT * FROM user1");
while (res.next()) {
ho=res.getString("amount");
System.out.println(ho);

Options: ReplyQuote


Subject
Written By
Posted
April 07, 2007 11:27PM
December 26, 2007 11:43AM
February 05, 2008 01:05AM
Re: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
January 22, 2008 09:00AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.