search cancel

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

book

Article ID: 89990

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Affects Release version(s): null

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

Environment

Release:
Component: AAUTEN

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