getting no opendnp3java in java.library.path error

589 views
Skip to first unread message

Vineet Sharma

unread,
Oct 1, 2018, 4:21:14 PM10/1/18
to opendnp3
I am executing OutstationDemo example but it is not working due to below error

Exception in thread "main" java.lang.UnsatisfiedLinkError: no opendnp3java in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at com.automatak.dnp3.impl.DNP3ManagerFactory.<clinit>(DNP3ManagerFactory.java:46)
at com.automatak.dnp3.example.OutstationDemo.main(OutstationDemo.java:40)

Kindly suggest the way forward.

Regards,
Vineet

Václav Šnajdr

unread,
Oct 29, 2018, 3:45:37 PM10/29/18
to opendnp3
Dne pondělí 1. října 2018 22:21:14 UTC+2 Vineet Sharma napsal(a):
Hello, I am the same problem. Does anyone have any solution?
Thanks you.

Vasek

Adam Crain

unread,
Oct 29, 2018, 3:48:51 PM10/29/18
to opendnp3
The java bindings rely on building and installing the native C++ library.

You have two options to allow the JVM to find the library:

1) Put it in a system library location such as /usr/local/lib (debian) or C:\windows\system32 (windows).
2) Tell the JVM where to look for libraries:

-Djava.library.path=<folder w/ .dll or .so>

小紅

unread,
Feb 20, 2021, 1:33:34 PM2/20/21
to opendnp3
Hi, Adam

Where can I find opendnp3java ??
Thanks you.

Rare

Adam Crain 在 2018年10月30日 星期二上午3:48:51 [UTC+8] 的信中寫道:

Adam Crain

unread,
Feb 20, 2021, 5:24:56 PM2/20/21
to opendnp3
Reply all
Reply to author
Forward
0 new messages