Discussion:
Eclipse And JDBC Driver settings
(too old to reply)
gachsaran
2007-05-02 23:17:34 UTC
Permalink
I use linux and Eclipse IDE to develop a JDBC based application. But
Eclipse can not see mysql-connector. If i use a editor like Gedit i can
compile and run the application.Mysql-connetor is in my CLASSPATH but
Eclipse does not see it. It means every times i create a java project
that use Jdbc i need to include muysql-connectorXXX.jar into java project.
Any help will be appriciated.

Tanks
gachsaran
David Harper
2007-05-03 04:56:33 UTC
Permalink
Post by gachsaran
I use linux and Eclipse IDE to develop a JDBC based application. But
Eclipse can not see mysql-connector. If i use a editor like Gedit i can
compile and run the application.Mysql-connetor is in my CLASSPATH but
Eclipse does not see it. It means every times i create a java project
that use Jdbc i need to include muysql-connectorXXX.jar into java project.
Any help will be appriciated.
You must first import the Connector/J JAR file into your Eclipse
project, then include it in the build path using the "Configure Build
Path..." dialog.

Once you have done this, Eclipse will include it in the classpath when
compiling and running your code.

Use the Eclipse help system and search for "build path" to get more
information.

David Harper
Cambridge, England

Loading...