Access a Windows dll from Java under Linux (probably through Wine)

2.5k Views Asked by At

I've managed to run JavaFX 2.0 under Linux by following this guide. It works nicely by running a Windows version of Java using Wine. This Java process can pick up the native .dll files of the Windows version of JavaFX.

Now I wonder if there is a different solution that runs a Linux version of Java but somehow makes access to the .dll files through Wine.

To sum it up graphically:

  • works: Wine -> Java(win) -> DLL(win)
  • what I'm asking: Java(linux) -> Wine -> DLL(win)

Why I want to do it

I have the hope to make the application start like any other Java application and only require an installation of Wine. The already working solution requires a Wine installation and a Windows version of Java.

1

There are 1 best solutions below

6
On

I doubt wine makes .dll appear as .so Wine works by creating an emulated environment and applications have to be run inside that environment to work.

What you should be able to do is

Java(linux) -- socket --> Java(Wine) -- loads --> DLL(win)