Niklas R
Niklas R

Reputation: 16870

System.loadLibrary with custom library suffix

I want to load a dynamic library with native method implementatons, located in java.library.path, that has the suffix .cdl. The following, unfortunately, does not work.

static {
    System.loadLibrary("java4d.cdl");
}

How can I load my java4d.cdl library?

Upvotes: 0

Views: 342

Answers (1)

Nicolas Mommaerts
Nicolas Mommaerts

Reputation: 3263

What if you use System.load("java4d.cdl")? Note that the arguments needs to be the absolute path: http://docs.oracle.com/javase/7/docs/api/java/lang/System.html#load(java.lang.String)

Upvotes: 1

Related Questions