File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes MySql from the command line, driver problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "MySql from the command line, driver problem" Watch "MySql from the command line, driver problem" New topic
Author

MySql from the command line, driver problem

Peter Primrose
Ranch Hand

Joined: Sep 10, 2004
Posts: 755
Hi everyone,

I'm using eclipse as my IDE and when compiling and running a program with MySql evreything works perfect.

when I export my project to a jar file and trying to run it from the command line I get error msgs - I take it the MySql driver cannot be found.

I'm doing this:
java -cp mysql-connector-java.jar;GTP.jar com.bonn.main.GTP

can someone tell me what's missing?

thanks
Ppr
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MySql from the command line, driver problem
 
Similar Threads
MySQL db - migrating from Access (but where is the driver?!)
JDBC drivers/getting JDBC started
run application with MySql - driver problem
"main" java.sql.SQLException: Access denied for user 'root'@'192.168.1.1' (using password: YES)
Mac OS 10.3.6 and J2EE, DB, Servlets, ...