Set vm arguments 'osgi.framework.extensions' and 'osgi.frameworkClassPath' when vm starts. If those value are set, those jar or path would be added into the classloader when starting EclipseStarter. See org.eclipse.equinox.launcher.Main for more details in the source code of Eclipse 3.4. Best Regards Kane
Read More about [OSGi][Eclipse]Add custom jar or path into Equinox FrameworkThe answer is very simple, using the service 'org.eclipse.service.PackageAdmin'.
Read More about [OSGi]How to acquire the fragments of specified bundleEquinox uses the adaptor hooks to implement the class loader. See http://wiki.eclipse.org/Adaptor_Hooks for more detail BaseClassLoadingHook would search the native code on itself. If it find the file in that jar file, it would extract the native library into its storage folder. EclipseClassLoadingHook defines some …
Read More about [Eclipse]Equinox's classloader and its URL schema1. 将要排版的文字贴到vim了 2. set textwidth=70 3. visual模式下选择要排版的文字,按gq, 就变成70字母1行的格式了
Read More about [tip][vim]排版小技巧In vi/vim, set file format=unix or dos2unix, unix2dos
Read More about [tip]convert dos format to unixBuild c/c++ project always need third party library on linux, such as gtk+, glib. Writing their absolute path in Makefile is not flexible way. You can use pkg-config instead of the absolute path. Below is code snippet: GTK_LIB=$(shell pkg-config --libs gtk+-2.0) GTK_INC=$(shell pkg-config --cflags gtk+-2.0) gcc -o …
Read More about [tip]MakefileOSGi provides a mechanism to let user contribute custom schemes automatically. It avoid some restriction with Java facilities for extending the handlers. The more detail could be found from OSGi specification R4, which has description how OSGi implements URL Handler Service. Use a sample to illustrate how to contribute …
Read More about [OSGi][Equinox]URL Handlers ServiceOSGi Spec defines Bundle-NativeCode header to contain a specification of native code libraries contained in that bundle. All magic things are initialized by org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLibrary(String) and org.eclipse.osgi.framework.internal.core.BundleLoader.findLibrary(String). Then …
Read More about [OSGi][Equinox]the Bundle-NativeCode implementation in Equinox1> 是输出正确数据, 2> 则是错误数据输出项目, 若要同时写入同一个档案需要使用 2>&1 /dev/null 是什么呢?基本上,那就有点像是一个『黑洞』的垃圾桶功能!当你输入的任何东西导向到这个虚拟的垃圾桶装置时,『他就会凭空消失不见了~~』
Read More about [shell]Learning Note - 3/19/08You must see the qualifier string property when exporting your features and plug-ins by Eclipse pde. But specified qualifier string won't appear after you export the features successfully. If you want to use the qualifier string, you must define your feature and plug-in version like below: 1.0.0.qualifier, …
Read More about [Eclipse]How to use qualifier string when exporting features and plug-ins