how to setup JDBC in Eclipse?

前端 未结 4 904
渐次进展
渐次进展 2020-12-30 09:22

I have eclipse and j developer,I am more comfortable with eclipse.I want to know how to setup the JDBC driver in eclipse,I downloaded a driver from oracle.com but it does no

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-30 10:01

    If you're wanting to include a JAR file to your Eclipse project, you would generally create a 'lib' folder inside the project folder, and put the file in there. You then need to tell eclipse to include it in your class path so your code will compile and run inside eclipse.

    To do that: - Go into the properties of your project - Select 'Java Build Path' in the left hand column - Select the 'Libraries' tab in the centre part of the window - Click the Add JARs button - this will give you a list of your projects in eclipse - expand your project and into the lib folder - your jar will be there. - Select the JAR, click OK, and OK again out of the properties window.

    Or, you can just right-click the jar and click BuildPath->Add to Build Path.

提交回复
热议问题