Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Plug-ins / fragments with native libraries - filter on 32/64bit VM?
Plug-ins / fragments with native libraries - filter on 32/64bit VM? [message #118112] Fri, 26 September 2008 09:19
Eclipse UserFriend
Originally posted by: mail.volker-wegert.de

Hello,

I want to bundle up a 3rd party library that comes with some native JNI
libraries (the SAP Java Connector 3, just in case someone wants to
know...). The library comes in different packages for different
environments. The package always contains a .jar file and the
corresponding .dll, .so, .jnilib or whatever. I've examined the jar file
in detail, and it's the same (at least the same contents) across all
platforms[1].

What I've done so far:
1. Created a plug-in that contains the jar file and an empty folder
named jni. Added both to the class path. Exported the relevant
packages.
2. Created three fragments (Windoze, Linux, OS X) for this plug-in and
placed the native libraries in the jni folder. Added a corresponding
Bundle-NativeCode statement to MANIFEST.MF.

So far everything works as it should - because I've only used 32 bit
JVMs. The JCo comes with different native libraries for 64 bit VMs:
,----
| sapjco3-darwinintel-3.0.0.zip (32bit)
| sapjco3-darwinx64-300.zip
| sapjco3-linuxia64-3.0.0.tgz
| sapjco3-linuxintel-3.0.0.tgz (32bit)
| sapjco3-linuxx86_64-3.0.0.tgz
| sapjco3-ntamd64-3.0.0.zip
| sapjco3-ntia64-3.0.0.zip
| sapjco3-ntintel-3.0.0.zip (32bit)
`----
I haven't had the time to try this out yet, but I'm fairly sure I'll
have to replace the native libraries when switching from a 32bit VM to a
64 bit VM - and I'll probably also have to distinguish between ia64 and
rest-of-the-world-64. How can I do this? Bundle-NativeCode doesn't seem
to support the filter values I need. I've also tried using
sun.arch.data.model in the fragment Eclipse-PlatformFilter, but it
doesn't seem to be supported either (never matches, even with the
correct values).

Any suggestions would be welcome - thanks in advance.
Volker

[1] with the exception of one platform, but the differences look like
"oops, forgot to update before building the release"

--
* Volker Wegert * http://www.volker-wegert.de/contact *
Living on Earth may be expensive, but it includes an annual free trip around
the Sun.
Previous Topic:Re: Updating and/or re-intalling Eclipse 3.4.1
Next Topic:update issue...
Goto Forum:
  


Current Time: Tue Mar 19 03:20:35 GMT 2024

Powered by FUDForum. Page generated in 0.02391 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top