This week's book giveaway is in the Android forum.
We're giving away four copies of Android Programming: The Big Nerd Ranch Guide and have Bill Phillips & Chris Stewart on-line!
See this thread for details.
Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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
Boost this thread!