Java application not starting (e.g. DB.Load ucybdbld)

Document ID : KB000089990
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Affects Release version(s): null

Java application not starting (e.g. DB.Load ucybdbld)
Resolution:

Symptoms

the jar fails with exception:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no ucybdbld in java.library.path

ucybdbld is just an example here


Cause

Java library path is used by the JVM to locate native libraries, in the example above the ucybdbld executable. If it is not found the UnsatisfiedLinkError is thrown.


Resolution

execute with

java -Djava.library.path=<path_to_dll> <main_class>

e.g.

#!/bin/bash
JAVAHOME=/usr/jdk/jre1.6.0_13/bin/sparcv9
export JAVAHOME
$JAVAHOME/java -version
$JAVAHOME/java -d64 -Djava.library.path="/opt/Automic/utility/bin" -jar ucybdbld.jar