Package native libraries into Fragments [message #169360] |
Thu, 11 December 2003 12:10 |
Eclipse User |
|
|
|
I am developping a plugin to monitor some OS specific informations.
To catch these informations I use JNI calls. I would like to package the
plugin in the following way:
-> plugins
-> org.eclipse.proc_1.0.0
-> proc.jar
-> plugin.xml
-> org.eclipse.proc.aix_1.0.0
-> proc_aix.jar
-> mylib.so
-> fragment.xml
-> org.eclipse.proc.win32_1.0.0
-> proc_win32.jar
-> mylib.dll
-> fragment.xml
I would like that:
-> proc.jar contains only UI classes, and a generic way to catch info (i.e:
Foo foo = new Foo().getInfo() )
-> proc_aix.jar contains the implementation of Foo class for the AIX os ( JNI
calls )
-> mylib.so contains the C code to retrieve the needed info for JNI.
Today, I don't know how to implement such an organisation. I don't know
how to delegate to the fragment the inmplementation of the Foo class and
getinfo method. I don't know how to automatically register my library (to
avoid JNI errors)
Someone can tell me how to solve these issues ?
|
|
|
Powered by
FUDForum. Page generated in 0.08774 seconds