You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Elvy <pi...@gmail.com> on 2011/06/21 12:22:51 UTC

Native Lib on Vista (64bits) with JVM 1.6.0_26 64bits needs osname=win32

I'm on Windows Vista (which is 64 bits) and after switching from JVM 32bits
to JVM 64bits I had to use the following on my maven-bundle-plugin for my
app to properly load on Felix 3.0.8

__________________
<Bundle-NativeCode>
   win32/foo32.dll;osname=win32;processor=x86,         
   win64/foo64.dll;osname=win32;processor=x86-64,
   linux/foo32.so;osname=linux;processor=x86,
   linux64/foo64.so;osname=linux64;processor=x86-64
</Bundle-NativeCode>
__________________


Look at the win64 declaration. Isn't it bizarre for the osname to be set as
win32 instead of win64?

Is this a bug or am I getting this wrong?

-----
Tell me something you don't know!
-- 
View this message in context: http://old.nabble.com/Native-Lib-on-Vista-%2864bits%29-with-JVM-1.6.0_26-64bits-needs-osname%3Dwin32-tp31892937p31892937.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Native Lib on Vista (64bits) with JVM 1.6.0_26 64bits needs osname=win32

Posted by Holger Hoffstätte <ho...@googlemail.com>.
On 21.06.2011 12:22, Elvy wrote:
> 
> I'm on Windows Vista (which is 64 bits) and after switching from JVM 32bits

AFAIK there are also 32bit variants of Vista and Win7..

> to JVM 64bits I had to use the following on my maven-bundle-plugin for my
> app to properly load on Felix 3.0.8
> 
> __________________
> <Bundle-NativeCode>
>    win32/foo32.dll;osname=win32;processor=x86,         
>    win64/foo64.dll;osname=win32;processor=x86-64,
>    linux/foo32.so;osname=linux;processor=x86,
>    linux64/foo64.so;osname=linux64;processor=x86-64
> </Bundle-NativeCode>
> __________________
> 
> 
> Look at the win64 declaration. Isn't it bizarre for the osname to be set as
> win32 instead of win64?
> 
> Is this a bug or am I getting this wrong?

The 4.2 spec had no explicit WindowsVista/7-64bit constants, so you can
use the "win32" alias for "Windows whatever" and let the matching suceed
via the processor attribute. 4.3 has new osname entries for Win7 etc.

-h

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Native Lib on Vista (64bits) with JVM 1.6.0_26 64bits needs osname=win32

Posted by "niibasta@gmail.com" <ni...@gmail.com>.
According to 
http://msdn.microsoft.com/en-us/library/ms724832(v=vs.85).aspx 
<http://msdn.microsoft.com/en-us/library/ms724832%28v=vs.85%29.aspx>
you can define Windows Vista as

win32/foo32.dll;osname=Windows Vista;processor=x86-64,osversion=6.0


On 21.06.2011 14:22, Elvy wrote:
> I'm on Windows Vista (which is 64 bits) and after switching from JVM 32bits
> to JVM 64bits I had to use the following on my maven-bundle-plugin for my
> app to properly load on Felix 3.0.8
>
> __________________
> <Bundle-NativeCode>
>     win32/foo32.dll;osname=win32;processor=x86,
>     win64/foo64.dll;osname=win32;processor=x86-64,
>     linux/foo32.so;osname=linux;processor=x86,
>     linux64/foo64.so;osname=linux64;processor=x86-64
> </Bundle-NativeCode>
> __________________
>
>
> Look at the win64 declaration. Isn't it bizarre for the osname to be set as
> win32 instead of win64?
>
> Is this a bug or am I getting this wrong?
>
> -----
> Tell me something you don't know!