Equinox 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 MoreBuild 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 MoreOSGi 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 MoreOSGi 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 More1> 是输出正确数据, 2> 则是错误数据输出项目, 若要同时写入同一个档案需要使用 2>&1 /dev/null 是什么呢?基本上,那就有点像是一个『黑洞』的垃圾桶功能!当你输入的任何东西导向到这个虚拟的垃圾桶装置时,『他就会凭空消失不见了~~』
Read MoreYou 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最近几天被一个注册表相关的defect搞的焦头烂额。 背景是这样的,产品在安装的时候需要通过修改注册表注册文件关联等信息。在先前安装程序基于InstallShield时工作正确,但在最近安装程序改用MSI后,我们写入注册表的信息没有被写到所期望的位置。 通过各种试验,查找资料,终于搞明白原因。我们修改注册表的进程不是当前用户进程,而是系统进程,因此写入到HKEY_CURRENT_USER下的数据不能被写入到当前登陆用户下。 We should not use "HKEY_CURRENT_USER" to retrival current user's registry key value. Because …
Read More