Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception in thread "main" java.lang.NoClassDefFoundError: ListMovies (wrong name

 
mike smithtwo
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The class called ListMovies is not found in your classpath. This has nothing to do with your JDBC connection. Where is this class ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic