capdragon
capdragon

Reputation: 14899

java.lang.UnsatisfiedLinkError: no JCfiLib in java.library.path

Before anyone states duplicate. Please be aware that other questions are windows based and complain about DLLs or are not related to this library.

I have downloaded the EOCFI JAVA API from ESA which I would like to use. These include some example .java files.

I'm simply loading their entire API directory, adding the external JARs, and trying to run their examples. But I run into the following error: java.lang.UnsatisfiedLinkError: no JCfiLib in java.library.path

I can't seem to find JCfiLib anywhere in the API or on the internet. I would imagine if I could I would simply add it to the java library path as the error states, but I have no idea what it is or where I can get it.

How can I get around this error?

enter image description here

I'm using eclipse on Debian Wheezy.

Any help would be greatly appreciated. Please be patient I'm not a Java programmer.

UPDATE (more details)

I realize now JCfiLib stands for "Java CFI Library" it's the library i'm using. But when I download it it's made up of 7 separate .jar files. (Visibility.jar, Pointing.jar, etc...) I reference them all as external jars.

The line it throws an error on is modelId = new ModelId(); (VisibilityExample.java:221) error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no JCfiLib in java.library.path
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at EECFI.CfiId.<clinit>(CfiId.java:22)
    at Visibility.example.VisibilityExample.main(VisibilityExample.java:211)

Upvotes: 2

Views: 6947

Answers (1)

user180100
user180100

Reputation:

There are some native library (including a libJCfiLib.so) in the package I downloaded (linux64, in libraries/LINUX64) and you need to tell Eclipse where to find them:

see How to add native library to "java.library.path" with Eclipse launch (instead of overriding it) for example.

Also note that there are some sample provided in the package with "run script", you can also check those in order to help you with your project.

Hope that helps.

Upvotes: 2

Related Questions