I take this error when I try to reach my library;

java.lang.reflect.InvocationTargetException: Link Error: com.chrysalisits.crypto.LunaAPI.Initialize()

what can be the reason for it?
I googled it but couldn’t find a suitable solution.

Can someone please help me?

Looks like you are trying to load an external DLL/SO. You need to put the java jar in the package’s code/jars directory. The DLL/SO should be on the server path or system path so that it can be found when the library is loading.