This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
What would be the best way to call a dll (on windows) or a shared library (on unix) from a java gui program.
We want to port a program which has calculation functions written in C++ and a small GUI in Delphi to other operating systems. One of the options would be, rewrite the GUI in Java, and let java call the native C++ code.
I was thinking of JNI, but I do not know if there are other options. I know that we also could use other tools like Qt, Mono and Lazarus, but that's not my task. I am investigating in Java is an options.