Hi Ming, On Mar 6, 2013, at 8:08 PM, Mingwei Fan <[email protected]<mailto:[email protected]>> wrote:
Thx. Now I made it work. I am using com.springsource.org.apache.commons.lang_2.1.0 bundle. Why? As Felix and I already pointed on, there are more recent version of apache commons-lang, which are backward compatible with 2.1, that are already valid OSGi bundles! I have to install and activate this bundle first and import it to my bundle and then my bundle works. Best to all, Ming From: [email protected]<mailto:[email protected]> [mailto:[email protected]<mailto:[email protected]>] On Behalf Of Felix Meschberger Sent: Tuesday, March 05, 2013 9:45 AM To: OSGi Developer Mail List Subject: Re: [osgi-dev] external jar Hi I suggest you use a more recent version of the library, which already comes as a bundle. For example Commons Lang 2.6. (Your application should work fine with the newer version because the Apache Commons project applies a strict backwards compatibility policy) Regards Felix Am 05.03.2013 um 15:39 schrieb Mingwei Fan: Hi All, How to import the external jar file into the osgi environment. I want to use the following apache jar ‘commons-lang-2.1.jar’ and got class not found error when I am running the bundle. I can compile the code without any error in eclipse 4.2 environment. Thx -------------------- This electronic message is intended to be for the use only of the named recipient, and may contain information that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately by contacting the sender at the electronic mail address noted above, and delete and destroy all copies of this message. Thank you. -------------------- This electronic message is intended to be for the use only of the named recipient, and may contain information that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately by contacting the sender at the electronic mail address noted above, and delete and destroy all copies of this message. Thank you. _______________________________________________ OSGi Developer Mail List [email protected]<mailto:[email protected]> https://mail.osgi.org/mailman/listinfo/osgi-dev -------------------- This electronic message is intended to be for the use only of the named recipient, and may contain information that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately by contacting the sender at the electronic mail address noted above, and delete and destroy all copies of this message. Thank you. -------------------- This electronic message is intended to be for the use only of the named recipient, and may contain information that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately by contacting the sender at the electronic mail address noted above, and delete and destroy all copies of this message. Thank you. _______________________________________________ OSGi Developer Mail List [email protected]<mailto:[email protected]> https://mail.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
