From: sangeeta chowdhary on 1 Mar 2010 23:35 hey m writing program in java to connect it to mysql. I have given driver name as Class.forName("com.mysql.jdbc.Driver"); but i am getting ClassNotFoundException. Please help me what shall i do.
From: Mike Schilling on 2 Mar 2010 00:02 sangeeta chowdhary wrote: > hey m writing program in java to connect it to mysql. > I have given driver name as > Class.forName("com.mysql.jdbc.Driver"); > but i am getting ClassNotFoundException. > Please help me what shall i do. Ensure that the jar containing the class com.mysql.jdbc.Driver is in your classpath.
From: sangeeta chowdhary on 2 Mar 2010 01:23 On Mar 2, 10:02 am, "Mike Schilling" <mscottschill...(a)hotmail.com> wrote: > sangeeta chowdhary wrote: > > hey m writing program in java to connect it to mysql. > > I have given driver name as > > Class.forName("com.mysql.jdbc.Driver"); > > but i am getting ClassNotFoundException. > > Please help me what shall i do. > > Ensure that the jar containing the class com.mysql.jdbc.Driver is in your > classpath. Thank you sir for your reply. i have set user variable as mysql and value of this variable is xampp/ mysql/bin/mysql.exe what else i need to do?
From: Lew on 2 Mar 2010 01:44 sangeeta chowdhary wrote: >>> hey m writing program in java to connect it to mysql. >>> I have given driver name as >>> Class.forName("com.mysql.jdbc.Driver"); >>> but i [sic] am getting ClassNotFoundException. >>> Please help me what shall i do. Mike Schilling wrote: >> Ensure that the jar containing the class com.mysql.jdbc.Driver is in your >> classpath. sangeeta chowdhary wrote: > Thank you sir for your reply. > i have set user variable as mysql and value of this variable is xampp/ > mysql/bin/mysql.exe You do not need to do that. > what else i need to do? You need to study about the Java classpath and JAR files. You need to download the MySQL JDBC JAR file if you have not already done so. You need to include that JAR file in the classpath for your Java program. <http://java.sun.com/javase/6/docs/technotes/tools/windows/java.html> <http://java.sun.com/docs/books/tutorial/essential/environment/paths.html> -- Lew
From: sangeeta chowdhary on 2 Mar 2010 02:06 On Mar 2, 11:44 am, Lew <no...(a)lewscanon.com> wrote: > sangeeta chowdhary wrote: > >>> hey m writing program in java to connect it to mysql. > >>> I have given driver name as > >>> Class.forName("com.mysql.jdbc.Driver"); > >>> but i [sic] am getting ClassNotFoundException. > >>> Please help me what shall i do. > Mike Schilling wrote: > >> Ensure that the jar containing the class com.mysql.jdbc.Driver is in your > >> classpath. > sangeeta chowdhary wrote: > > Thank you sir for your reply. > > i have set user variable as mysql and value of this variable is xampp/ > > mysql/bin/mysql.exe > > You do not need to do that. > > > what else i need to do? > > You need to study about the Java classpath and JAR files. You need to > download the MySQL JDBC JAR file if you have not already done so. You need to > include that JAR file in the classpath for your Java program. > > <http://java.sun.com/javase/6/docs/technotes/tools/windows/java.html> > <http://java.sun.com/docs/books/tutorial/essential/environment/paths.html> > > -- > Lew Please tell me full procedure to sort out this problem. i will be very thankful to you. i have set classpath to mysql connector also. still things are not working. kindly help me please.
|
Next
|
Last
Pages: 1 2 Prev: FF3.6 Stack output from Too Much Recursion Next: java Date to c# ticks |