简体   繁体   中英

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

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.

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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM