简体   繁体   English

从Eclipse中的库项目导出jar

[英]Export jars from library project in Eclipse

I have a Dynamic Web Project with a reference to a library project. 我有一个动态Web项目,其中包含对库项目的引用。 When I export the .war file and try to call the method I got: 当我导出.war文件并尝试调用我得到的方法时:

org.jboss.resteasy.spi.UnhandledException: java.lang.NoClassDefFoundError: net/sf/jni4net/Bridge org.jboss.resteasy.spi.UnhandledException:java.lang.NoClassDefFoundError:net / sf / jni4net / Bridge

When I look into my .war file, the jars of the library project were not exported. 当我查看.war文件时,未导出库项目的jar。 How can I do that? 我怎样才能做到这一点?

Thanks. 谢谢。

Right click on the project, click 'Properties'. 右键单击该项目,然后单击“属性”。 Next select 'Deployment Assembly'. 接下来选择“部署程序集”。 Click the 'Add...' button to add my jar files that you need to be included in the exported war file. 单击“添加...”按钮以添加需要包含在导出的war文件中的我的jar文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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