简体   繁体   中英

How to add few classes from a jar file to my project in eclipse?

I have a standalone java project in eclipse . I have to place dom4j.jar in META-INF\\lib directory. But as per my Application server considered It is already exposing all the packages except org.dom4j . So I have to explicitly make all the classes in org.dom4j package available to my aplication. Is there any way we can do this?

UPDATE:

I want only few classes from the jar to be available to my project at run-time not all .

转到项目属性-> Java构建路径->库->添加Jar,然后添加此jar

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM