Use IDEA to import the jar package

Guide one after another

As a newcomer to java, I opened the company’s java project today and prepared to adjust the project locally.
The project did not use package management tools such as maven.
As a result, svn updated the latest code, and when it ran, it became popular.

The com.drew.imging package does not exist.
This is for uploading pictures and adding watermarks.
So I went to the project WEB_INF\lib folder to find the "imging.jar" file.
After searching for a long time, I couldn't find it. Then Baidu found one on csdn and downloaded it for coins.
So I asked my colleague, and he promised to help me find it.
After a while, my colleague sent a "metadata-extractor-2.8.1.jar".
Well, this class name has nothing to do with this jar file name, no wonder I can't find it.

Through the File -> Project Structure -> Modules -> Dependencies ->+ of the idea.
Then go to the project lib folder and select the corresponding jar to add and run again.

The result is another one:
com.hikvision.artemis.sdk package does not exist.
This is for connecting to Hikvision video surveillance.
Still ask a colleague for help.
Know that this package is "artemis-http-client-1.1.3.jar".
Then repeat the ide adding jar step.

This makes me very tired, wasting time in dating.
Does not meet the time management principles of Teacher Luo Zhixiang.

So I found a way to batch import lib files, record it here:
File -> Project Structure -> Libraries -> New Project Library -> Attach Classes Select all jars in the lib folder and add them.

But there is a problem. Libraries cannot be updated automatically when adding jar to lib.

Alas, all ideas are used, so use maven , really.

Find the jar package by package/class name

Through the above experience, I can't help but ask:
how to find the corresponding jar package by package name or class name?

I asked my colleagues and there is no good way, they are all Baidu

Guess you like

Origin blog.csdn.net/u011513460/article/details/105734452