Thread View: comp.lang.java.databases
3 messages
3 total messages
Started by gachsaran
Wed, 02 May 2007 23:17
Eclipse And JDBC Driver settings
Author: gachsaran
Date: Wed, 02 May 2007 23:17
Date: Wed, 02 May 2007 23:17
9 lines
1476 bytes
1476 bytes
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
Re: Eclipse And JDBC Driver settings
Author: Arne VajhΓΈj
Date: Wed, 02 May 2007 23:51
Date: Wed, 02 May 2007 23:51
19 lines
1889 bytes
1889 bytes
gachsaran wrote: > 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. I would say that it is a good thing that you explicit has to put a specific version of a specific library in your classpath for a project. And the 10 second overhead for a project you will work on for N must must be tolerable. If you really want to make your environment obfuscated, then dump the jar file in jre/lib/ext, but do not say that you were not warned against it. Arne
Re: Eclipse And JDBC Driver settings
Author: David Harper
Date: Thu, 03 May 2007 04:56
Date: Thu, 03 May 2007 04:56
20 lines
2114 bytes
2114 bytes
gachsaran wrote: > 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads