signalapp / curve25519-java

Pure Java and JNI backed Curve25519 implementation.
GNU General Public License v3.0
233 stars 96 forks source link

com.sun.jna.Native.load(Ljava/lang/String;Ljava/lang/Class;)Lcom/sun/jna/Library; #45

Open showlocked opened 2 years ago

showlocked commented 2 years ago

how can i used in springboot project, my child model used it but parent on runing give me a error message: Exception in thread "main" java.lang.NoSuchMethodError: com.sun.jna.Native.load(Ljava/lang/String;Ljava/lang/Class;)Lcom/sun/jna/Library; at org.whispersystems.curve25519.NativeCurve25519Provider.<clinit>(NativeCurve25519Provider.java:14) at org.whispersystems.curve25519.OpportunisticCurve25519Provider.<init>(OpportunisticCurve25519Provider.java:15) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at java.lang.Class.newInstance(Class.java:442) at org.whispersystems.curve25519.Curve25519.constructClass(Curve25519.java:179) at org.whispersystems.curve25519.Curve25519.constructOpportunisticProvider(Curve25519.java:174) at org.whispersystems.curve25519.Curve25519.getInstance(Curve25519.java:31) at org.whispersystems.curve25519.Curve25519.getInstance(Curve25519.java:23)