Is it possible to use Java to create dll?

前端 未结 9 1231
轮回少年
轮回少年 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:31

    No, IIRC you can't. DLLs are linked directly when loaded. Java code needs a jvm, so you can only provide a dll that starts a jvm and starts code there, but not all necessarily stuff fits in the dll.

    You should not do this. It looks like you're trying to use the wrong approach for your problem.

提交回复
热议问题