How to import a jar in Eclipse

前端 未结 10 1406
挽巷
挽巷 2020-11-21 06:54

How do I import a jar in Eclipse?

10条回答
  •  日久生厌
    2020-11-21 07:45

    Eclipse -> Preferences -> Java -> Build Path -> User Libraries -> New(Name it) -> Add external Jars

    (I recommend dragging your new libraries into the eclipse folder before any of these steps to keep everything together, that way if you reinstall Eclipse or your OS you won't have to rwlink anything except the JDK) Now select the jar files you want. Click OK.

    Right click on your project and choose Build Path -> Add Library

    FYI just code and then right click and Source->Organize Imports

提交回复
热议问题