Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Java (http://www.velocityreviews.com/forums/f30-java.html)
-   -   JNI 64bit JVM, load 32bit native library (http://www.velocityreviews.com/forums/t362036-jni-64bit-jvm-load-32bit-native-library.html)

mark.faine@gmail.com 08-03-2006 01:14 PM

JNI 64bit JVM, load 32bit native library
 
Is it possible to load a 32bit native library (linux.so) using a 64bit
version of Java?

Thanks,
-Mark


mark.faine@gmail.com 08-03-2006 02:25 PM

Re: JNI 64bit JVM, load 32bit native library
 
If this is not possible, which at this point, I believe it is not. How
do I build a 32 bit version of JSVC on AMD_64 Linux?

Thanks,
-Mark


mark.faine@gmail.com wrote:
> Is it possible to load a 32bit native library (linux.so) using a 64bit
> version of Java?
>
> Thanks,
> -Mark



Patricia Shanahan 08-04-2006 02:48 PM

Re: JNI 64bit JVM, load 32bit native library
 
mark.faine@gmail.com wrote:
> Is it possible to load a 32bit native library (linux.so) using a 64bit
> version of Java?


I've never tried to mix sizes, so this is just an idea on general
principles.

Have you considered writing a 64 bit wrapper library, in e.g. C, that
interfaces to the 32 bit native library?

Patricia

Nigel Wade 08-04-2006 04:21 PM

Re: JNI 64bit JVM, load 32bit native library
 
mark.faine@gmail.com wrote:

> Is it possible to load a 32bit native library (linux.so) using a 64bit
> version of Java?
>


I'm pretty sure you cannot mix 32bit and 64bit binaries, they will not co-exist.

It is possible to run 32bit executables on a 64it platform, however. If the
platform is AMD64 or EMT64 then it should cause no problems at all. All you
would need is to install a 32bit JRE.

--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555

tungjty 06-22-2011 07:34 AM

Quote:

Originally Posted by Nigel Wade (Post 1901951)
mark.faine@gmail.com

I'm pretty sure you cannot mix 32bit and 64bit binaries, they will not co-exist.

It is possible to run 32bit executables on a 64it platform, however. If the
platform is AMD64 or EMT64 then it should cause no problems at all. All you
would need is to install a 32bit JRE.

thanks, your answer is correct !


All times are GMT. The time now is 05:55 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57