JNI 64bit JVM, load 32bit native library

Discussion in 'Java' started by mark.faine@gmail.com, Aug 3, 2006.

  1. Guest

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

    Thanks,
    -Mark
     
    , Aug 3, 2006
    #1
    1. Advertisements

  2. Guest

    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


    wrote:
    > Is it possible to load a 32bit native library (linux.so) using a 64bit
    > version of Java?
    >
    > Thanks,
    > -Mark
     
    , Aug 3, 2006
    #2
    1. Advertisements

  3. 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
     
    Patricia Shanahan, Aug 4, 2006
    #3
  4. Nigel Wade Guest

    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 :
    Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
     
    Nigel Wade, Aug 4, 2006
    #4
  5. tungjty

    Joined:
    Jun 22, 2011
    Messages:
    1
    Likes Received:
    0
    thanks, your answer is correct !
     
    tungjty, Jun 22, 2011
    #5
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Abhishek Singh

    JVM crashes: Native method, JNI

    Abhishek Singh, Jul 23, 2003, in forum: Java
    Replies:
    2
    Views:
    1,000
    Nigel Wade
    Jul 23, 2003
  2. Alex Hunsley
    Replies:
    4
    Views:
    1,100
    Alex Hunsley
    Nov 14, 2003
  3. Replies:
    3
    Views:
    648
    NOBODY
    Nov 12, 2005
  4. Peter Hartmann

    32bit install on 64bit system

    Peter Hartmann, Sep 15, 2005, in forum: Python
    Replies:
    1
    Views:
    507
    Christophe
    Sep 15, 2005
  5. Alexander Schmolck
    Replies:
    2
    Views:
    469
    David Rushby
    Jan 28, 2006
  6. pickle: 32bit vs 64bit

    , Mar 28, 2006, in forum: Python
    Replies:
    0
    Views:
    457
  7. dwelch91

    Detecting 64bit vs. 32bit Linux

    dwelch91, Jul 7, 2006, in forum: Python
    Replies:
    8
    Views:
    806
    Lawrence D'Oliveiro
    Jul 11, 2006
  8. TsanChung
    Replies:
    7
    Views:
    2,079
    TsanChung
    Sep 18, 2008
Loading...