I am trying to connect a java program to a database SQL Anywhere 17 using JDBC connection SQL Anywhere 17 installed in Windows machine. I have built a JAR to run the connection. The JAR is working in another Windows machine. I have jconn4.jar
and dbjdbc17.dll
files in the same directory as the JAR and running the JAR command java -classpath connect.jar;jconn4.jar com.Main
.
When I moved the same JAR directory to a Linux machine, I'm getting this:
exception.java.lang.UnsatisfiedLinkError: no dbjdbc17 in java.library.path.
Can we connect SQL Anywhere 17 installed in Windows from Linux machine? Can someone suggest me the correct way to run this JAR in Linux which is working in Windows?