Hi! On Mar 5, 2013, at 3:39 PM, Mingwei Fan <[email protected]<mailto:[email protected]>> wrote: 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.
I suggest you to switch to the latest 2.X version of apache commons-lang (the 2.6) which is 2.1 backward-compatible, and that contains the right OSGi headers in the META-INF. You can find commons-lang-2.6 on the download page[1]. If you want to give a try to v3.1, you will have to update the imports in your applications, since packages changed. HTH, all the best! :) -Simo [1] http://commons.apache.org/proper/commons-lang/download_lang.cgi
_______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
