I manually copied the my sql connector jar to lib folder of my sql jdbc project. I had some old jars already in that folder and which were also easily added to build path before. Now, I forgot how i did it and i don't see that the lib folder when i try to add the jar to build path. How do it ? I want my jar to be a part of my project and not lying in some random folder.
Try to go Window > Preferences > Java > User Libraries and add new user library that point mysql connector.And then use this library to your project.But don't forget to delete your old mysql connector jar in your lib folder.Try this way.
Paste the jar directly inside eclipse using the project explorer to your desired folder and then try to "Add Jar" from Build Path->Configure Build Path->Libraries.
Try to go Window > Preferences > Java > User Libraries and add new user library that point mysql connector.And then use this library to your project.But don't forget to delete your old mysql connector jar in your lib folder.Try this way.
Select the project, and from its pop-up menu, select Properties. In the Properties dialog,
select the Java Build Path page.
Click the Libraries tab.
You can now either add a JAR file which is contained in your workspace or which is somewhere else:
to add a JAR file which is inside your workspace click the Add JARs button
to add an external JAR file click the Add External JARs button
In the dialog that appears, select the JAR file that you want to add. Note that you can add multiple JARs at once.
You can remove the old jars which relates to sql connector jar, then add the jar you requeired into the build path.If your project is web project, you can bring the jar into the folder named lib under the WEB-INF.If your project is java project , you can make a folder named lib, then take some jars into it.
Maybe you can try Command + Shift + . keys to see hidden folders on Mac
Did this get solved - I have exactly the same issue. I had 3 libs in project/src/lib, removed 2 of them but now want to reinstate them. I can still see the jar I didn't remove in the build path dialog but no matter what I do I can't reinstate the other two as the lib folder doesn't show.
© 2022 - 2024 — McMap. All rights reserved.