Is it possible to use Java to create dll?

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

    I doubt so, unless there's some 3rd party tools out there. For your case where graphics is involved, chances are even lower.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2021-02-08 00:33

    I agree with bmargulies. It's probably feasible for an expert, but it would be a large DLL and you'd be mixing technologies that were never made to work together. It doesn't make sense to try this, in my opinion.

    0 讨论(0)
提交回复
热议问题