call unity lib in java serverside,java server use unity lib

my gameserver is written in java.Now I want to do something like ‘’stateSynchronization‘’ with unity client.
For example ,i need to make animation the same between server and client, so I want to use unity animation lib to controll charactor anim in server too.
Could someone tell me how to call a unity lib in java server side? not in Android…

some one there?