How to import a jar in Eclipse

2018-12-31 01:33发布

How do I import a jar in Eclipse?

标签: java eclipse jar
7条回答
像晚风撩人
2楼-- · 2018-12-31 02:18

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

查看更多
登录 后发表回答