First, you need to install the package:
sudo aptitude install libmysql-javaThen you need to make sure that the classpath is correct:
CLASSPATH=$CLASSPATH:/usr/share/java/This is a good point to logout/login...
export CLASSPATH
The code to connect to the database looks something like
No comments:
Post a Comment