A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
MySql from the command line, driver problem
Joined: Sep 10, 2004
Feb 26, 2005 14:30:00
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:
-cp mysql-connector-java.jar;GTP.jar com.bonn.main.GTP
can someone tell me what's missing?
I agree. Here's the link:
subject: MySql from the command line, driver problem
MySQL db - migrating from Access (but where is the driver?!)
Mac OS 10.3.6 and J2EE, DB, Servlets, ...
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)
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014