Mysql Connector Java 5.0 0 Bin Jar

 Posted admin
Mysql Connector Java 5.0 0 Bin Jar Rating: 3,0/5 7464 reviews

I have already set the classpath to mysql-connector-java-5.0.8-bin.jar and compiled my class successfully.But when I run it I get:

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

The code is:

Rakshit P R VashishtaRakshit P R Vashishta

2 Answers

Make sure you are 'adding' the mysql-connector-java-5.1.42-bin.jar file to the classpath when starting your program (obviously it can be a different version number).

something like

or

assuming:

  1. the JAR is in the current folder... if that works, consider putting the JAR in a 'central' place a use the complete path in above commands

  2. using Windows, otherwise the separator would be : instead of ;

  3. the class is in no package

for Ubuntu:

Carlos HeubergerCarlos Heuberger

Looks like more of a classpath issue. Try adding the jar manually to your project. I ran the same with mysql-connector-java-5.0.8.jar and I dont get this error.

Ganesh HariharanGanesh Hariharan

Not the answer you're looking for? Browse other questions tagged javamysqljdbc or ask your own question.

Search

Download mysql-connector-java-5.1.23.bundle.jar

The download jar file contains the following class files or Java source files.



Related examples in the same category

1.Download mysql-database-1.8.0-sources.jar
2.Download mysql-database-1.8.0.jar
3.Download mysql-database-1.8.1-sources.jar
4.Download mysql-database-1.8.1.jar
5.Download mysql-database-1.8.2-sources.jar
6.Download mysql-database-1.8.2.jar
7.Download mysql-database-1.8.3-sources.jar
8.Download mysql-database-1.8.3.jar
9.Download mysql-database-1.8.4-sources.jar
10.Download mysql-database-1.8.4.jar
11.Download mysql-database-1.8.5-sources.jar
12.Download mysql-database-1.8.5.jar
13.Download mysql-database-1.8.6-sources.jar
14.Download mysql-database-1.8.6.jar
15.Download mysql-database-1.8.7-sources.jar
16.Download mysql-database-1.8.7.jar
17.Download mysql-database-1.8.8-sources.jar
18.Download mysql-database-1.8.8.jar
19.Download mysql-database-1.8.9-sources.jar
20.Download mysql-database-1.8.9.jar
21.Download mysql-database-1.7.0-sources.jar
22.Download mysql-database-1.7.0.jar
23.Download mysql-database-1.7.1-sources.jar
24.Download mysql-database-1.7.1.jar
25.Download mysql-database-1.7.2-sources.jar
26.Download mysql-database-1.7.2.jar
27.Download mysql-auth-1.0-sources.jar
28.Download mysql-database-1.7.3-sources.jar
29.Download mysql-database-1.7.3.jar
30.Download mysql-database-1.8.15-sources.jar
31.Download mysql-database-1.8.15.jar
32.Download mysql-database-1.8.16-sources.jar
33.Download mysql-database-1.8.16.jar
34.Download mysql-database-1.8.11-sources.jar
35.Download mysql-database-1.8.11.jar
36.Download mysql-database-1.8.12-sources.jar
37.Download mysql-database-1.8.12.jar
38.Download mysql-database-1.8.13-sources.jar
39.Download mysql-database-1.8.13.jar
40.Download mysql-database-1.8.14-sources.jar
41.Download mysql-database-1.8.14.jar
42.Download mysql-3.2.0-sources.jar
43.Download mysql-3.2.1-sources.jar
44.Download mysql-3.2.2-sources.jar
45.Download mysql-3.2.0-rc1.jar
46.Download mysql-3.3.0-rc1-sources.jar
47.Download mysql-3.3.0-rc1.jar
48.Download mysql-3.4.0-sources.jar
49.Download mysql-3.2.0-rc1-sources.jar
50.Download mysql-3.5.0-sources.jar
51.Download mysql-3.5.0.jar
52.Download mysql-3.3.0-sources.jar
53.Download mysql-auth-1.1-h-1-sources.jar
54.Download mysql-auth-1.1-h-1.jar
55.Download mysql-2_0_12.jar
56.Download mysql-3.0.15-bin.jar
57.Download mysql-3.2.0.jar
58.Download mysql-3.2.1.jar
59.Download mysql-3.2.2.jar
60.Download mysql-3.3.0.jar
61.Download mysql-3.4.0.jar
62.Download mysql-307.jar
63.Download mysql-5.0.7.jar
64.Download mysql-5.1.10.jar
65.Download mysql-5.1.8.jar
66.Download mysql-auth-1.0.jar
67.Download mysql-connector-5.1.18.jar
68.Download mysql-connector-java-3.0.10-stable-bin.jar
69.Download mysql-connector-java-3.0.11-stable-bin.jar
70.Download mysql-connector-java-3.0.14-production-bin.jar
71.Download mysql-connector-java-3.0.16-ga-bin.jar
72.Download mysql-connector-java-3.0.17-ga-bin.jar
73.Download mysql-connector-java-3.0.8-stable-bin.jar
74.Download mysql-connector-java-3.1.14-bin-g.jar
75.Download mysql-connector-java-5.0.8-bin-g.jar
76.Download mysql-connector-java-5.1.21.bundle.jar
77.Download mysql-connector-java-5.1.21.jar
78.Download mysql-connector-java-5.1.22-bin.jar
79.Download mysql-connector-java-5.1.22.bundle.jar
80.Download mysql-connector-java-5.1.23-bin.jar
81.Download mysql-connector-java-5.1.24-bin.jar
82.Download mysql-connector-java-5.1.3.jar
83.Download mysql-connector-java-5.1.4.jar
84.Download mysql-connector-java-5.1.5-bin.jar
85.Download mysql-connector-java-5.1.6-bin.jar
86.Download mysql-connector-java-5.1.9.jar
87.Download mysql-connector-java-commercial-5.1.7-bin.jar
88.Download mysql-connector-java.jar
89.Download mysql-connector-java8-5.1.23.jar
90.Download mysql-connector-mxj-5.0.12-sources.jar
91.Download mysql-connector-mxj-5.0.12.jar
92.Download mysql-connector-mxj-gpl.jar
93.Download mysql-connector.jar
94.Download mysql-diff-0.2-sources.jar
95.Download mysql-diff-0.2.jar
96.Download mysql-jdbc-5.1.10.jar
97.Download mysql_comp.jar
98.Download mysql-connector-java-2.0.14-bin.jar
99.Download mysql-connector-java-3.1.11.jar
100.Download mysql-connector-java-3.1.13.jar
101.Download mysql-connector-java-3.1.14.jar
102.Download mysql-connector-java-5.1.1.jar
103.Download mysql-connector-java-5.1.11.jar
104.Download mysql-connector-java-5.1.12.jar
105.Download mysql-connector-java-5.1.13.jar
106.Download mysql-connector-java-5.1.14.jar
107.Download mysql-connector-java-5.1.15.jar
108.Download mysql-connector-java-5.1.16.jar
109.Download mysql-connector-java-5.1.18.bundle.jar
110.Download mysql-connector-java-5.1.19.bundle.jar
111.Download mysql-connector-java-5.1.19.jar
112.Download mysql-connector-java-5.1.2.jar
113.Download mysql-async_2.10-0.2.0-sources.jar
114.Download mysql-async_2.10-0.2.0.jar
115.Download mysql-async_2.10-0.2.1-sources.jar
116.Download mysql-async_2.10-0.2.1.jar
117.Download mysql-async_2.10-0.2.3-sources.jar
118.Download mysql-async_2.10-0.2.3.jar
119.Download mysql-async_2.10-0.2.4-sources.jar
120.Download mysql-async_2.10-0.2.4.jar
121.Download mysql-async_2.10-0.2.5-sources.jar
122.Download mysql-async_2.10-0.2.5.jar
123.Download mysql-async_2.10-0.2.6-sources.jar
124.Download mysql-async_2.10-0.2.6.jar
125.Download mysql-database-1.6.10-sources.jar
126.Download mysql-database-1.6.10.jar
127.Download mysql-database-1.6.11-sources.jar
128.Download mysql-database-1.6.11.jar
129.Download mysql-database-1.6.12-sources.jar
130.Download mysql-database-1.6.12.jar
131.Download mysql-database-1.6.13-sources.jar
132.Download mysql-database-1.6.13.jar