| Author |
Exception in thread "main" java.lang.NoClassDefFoundError: ListMovies (wrong name
|
mike smithtwo
Greenhorn
Joined: Sep 20, 2010
Posts: 1
|
|
I get the no class def error when i try connect to Mysql with java program. I can access the Mysql database from commnad line.
environment variable CLASSPATH: .;C:\mysql\mysql-connector-java-5.1.13-bin.jar
The code is below:
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14671
|
|
"mike smithtwo",
Please check your Private Messages for an important administrative matter.
And welcome to the ranch ! When you want to post some source, please UseCodeTags. This will make your source more readable. I'll add them for you this time.
|
[My Blog]
All roads lead to JavaRanch
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14671
|
|
|
The class called ListMovies is not found in your classpath. This has nothing to do with your JDBC connection. Where is this class ?
|
 |
 |
|
|
subject: Exception in thread "main" java.lang.NoClassDefFoundError: ListMovies (wrong name
|
|
|