0
votes

i have problem with java while using opencv , everything Works fine but when i Create a jar file and execute it , i got Error .
C:\User\Asus>java -jar "virus.jar" .
Exception in thread "main" java.lang.UnsatisfiedLinkError: no opencv_java300 in java.library.path at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at virus.Virus.(Virus.java:75)

1
You could also see My answer to Java/Kotlin/Windows which uses . nu.pattern api/ - JoSchmidt KarenDoe

1 Answers

0
votes

so i fixed the probleme using cmd here is the instruction : C:\Users\asus>java -Djava.library.path="C:\opencv3\opencv\build\java\x64" -jar "C:\Users\asus\Desktop\jar export\trojanexe.jar". for more information about java.library.path visite this site : https://www.chilkatsoft.com/java-loadlibrary-windows.asp