Jar file unrecognized

Hi all, fairly new to the IDE so please bear with me. I have been trying to import a .jar file into my existing project, but I've come across one that has been giving me problems. The .jar file in questions is tdgssconfig.jar from Teradata's site: https://downloads.teradata.com/download/connectivity/jdbc-driver

I have tried to import it into my project using File > Project Structure > Libraries > + > Java > jar directory, however upon selecting the jar file, IDEA complains that it cannot determine what kind of files the chosen items contain. Choose the appropriate categories from the list. Selecting jar directory from that list adds it to the list of libraries, but the project doesn't recognize it and it is not seen in my project's external libraries. I don't think it's an issue with the .jar file since I have tested in another IDE and it works fine.

3 comments
Comment actions Permalink

Hello.

I've downloaded the zip archive from the link you've specified. It contains mentioned tdgssconfig.jar, but this jar contains only MANIFEST.MF and some configuration .xml, and not java class files.

You probably need to add another jar to the library, terajdbc4.jar, it's also in the zip.

Regards,
Alexander.

0
Comment actions Permalink

Hi Alexander, sorry I should have mentioned in my previous post that I have also included terajdbc4.jar. Here is what my project structure looks like:
01.jpg

And this is what my External Libraries folder within my project folder looks like:
02.jpg

I just cannot seem to get IDEA to recognize tdgssconfig.jar.

0
Comment actions Permalink

Then I can't reproduce the issue. So, you have 2 project libraries. Then open Project Structure dialog, go to Modules section, select the module you need, open Dependendies tab and a project library there. For me it's possible to add both libraries.

Regards,
Alexander.

0

Please sign in to leave a comment.