Is it possible to use Java to create dll?

前端 未结 9 1246
轮回少年
轮回少年 2021-02-07 23:42

Want to create animation dll for Window XP Is it ok to create Java2d animation and export as dll??

9条回答
  •  花落未央
    2021-02-08 00:07

    Yes. You need to write code in C++ to start the JVM with the invocation interface to JNI, and call into it. However, you may find it difficult to create windows in this way that integrate seamlessly with your Windows environment application to display your animation. This is a rather advanced JNI usage, and I'd recommend reading the JNI book before even trying a little bit of it.

提交回复
热议问题