Want to create animation dll for Window XP Is it ok to create Java2d animation and export as dll??
Yes, it is possible to generate DLLs from Java source code.
2 Methods I have used:
IKVM is mature, but rather slow in runtime execution of the generated DLL.
Graal is fast, but early days and immature in the Windows environment. See https://openjdk.java.net/jeps/295 for further info.
There are other commercial options available as well.