• Post Reply Bookmark Topic Watch Topic
  • New Topic

Windows DLL in Linux-JVM?

 
arya putra
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • 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.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Other Java APIs forum, where we conversations about JNI are typically held...
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!