JBoss Community

How to make Jboss server recognize Windows DLL

created by Tuan Nguyen in Beginner's Corner - View the full discussion

I was trying to call my Java code that uses JNA to link DLL's.

 

In my class, I define jna.library.path as such:

static {
System.setProperty(“jna.library.path”, “C:\\Software\\VMWare\\VSphere-4.1″);
}

In Jboss’s start-up script. I set the JVM argument to to point to jna.library.path containing DLL’s
set “JAVA_OPTS=%JAVA_OPTS% -Djna.library.path=C:\Software\VMWare\VSphere-4.1″

When I run the code on Jboss server, I got a null pointer exception for the following code:

hostHandle = new VixVSphereHandle(“10.2.0.100″,443,”administrator”,”cf@dp@$$w0rd”);

It seems that Jboss could not find the DLL’s to link VixVSphereHandle.

Environment:

(1) Jboss 5.0.1

(2) Windows Server 2003

 

Any idea?

Thanks,

Tuan

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community