How to set a .dll library?

Hi, I am using Sybase SQL Anywhere like a database server to deploy a database for a pocketpc, and I want to make a java application for it.

For this I have to use a jar archive (jul9.jar). I set this jar for this project in Intellij IDEA, and everything is fine at the compile time. But at running it needs jul9.dll, and I don't know how to set it for this project in Intellij IDEA. I have this .dll library, but how and where to make the setting.

Thanks and hope somebody has an advice for me

2 comments

Hello nicu,

Hi, I am using Sybase SQL Anywhere like a database server to deploy a
database for a pocketpc, and I want to make a java application for it.

For this I have to use a jar archive (jul9.jar). I set this jar for
this project in Intellij IDEA, and everything is fine at the compile
time. But at running it needs jul9.dll, and I don't know how to set it
for this project in Intellij IDEA. I have this .dll library, but how
and where to make the setting.

Thanks and hope somebody has an advice for me


In the Run/Debug configuration VM parameters specify -Djava.library.path=
property pointing to the directory with the dll. You can also put the dll
somewhere in PATH.

--
Serge Baranov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0

I have post the "-Djul.library.dir="c:\Program Files\sybase\SQL Anywhere 9\ultralite\NativeUltraLiteForJava\win32" in VM Parameters, as you told me ... and now it works fine.

Thanks a lot.

0

Please sign in to leave a comment.