• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Windows DLL in Linux-JVM?

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Folks,
I have RH 9 running some astronomical based applications. I need to implement a logic which is currently supported just in WIndows. Lukcily I have a Windows DLL completely based on the JNI interface standards. I would like make some calls from this DLL from my JAVA program running under Linux. Is it possible to achieve this? I mean will Sytem.loadLibrary work? If yes then could somebody pls provide me any previous experience or any document where I could find some useful information.
Most of the developers tried using Windows JVM using WINE to execute this kind of scenario. Doesnt make sense If I write to the Wine group,when I dont think I would need it.
Thanks.
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving this to the Other Java APIs forum, where we conversations about JNI are typically held...
 
Ranch Hand
Posts: 1970
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can answer one of your questions with certainty. You will not be able to use System.loadLibrary() to load a Windows DLL directly when you are running a Linux JVM on Linux.

The suggestion of using a Windows emulator on Linux (e.g. Wine) sounds as if it might work. No experience of it, however.

It sounds possible to make some sort of wrapper for a Windows JNI DLL so that it could be loaded indirectly, when running a Linux JVM on Linux. However, this would be no easy task. It would require intimate knowledge of the library file formats, system library locations etc on the two O/Ss. Don't ask me how to do it.
 
Message for you sir! I think it is a tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic