Libjava.a problems on C++ API Agent execution

Hi,

I’m tryng to execute a java agent through an external program coded with a C++ API.

before executing the agent, I run a script that export some enviroment variables, but I think those are not enough.

The error we get is :

Unable to dlopen libjava.a: A file or directory in the path name does not exist.

Cannot obtain system-specific information

04/21/2005 10:21:08 JVM: The Java Virtual Machine creation returned an invalid JVM machine pointer.

04/21/2005 10:21:08 JVM: Java Virtual Machine failed to start

04/21/2005 10:21:09 Agent ‘Documents generation from kiosk’ error: LS2J Error: Java Virtual Machine failed to start.

04/21/2005 10:21:09 Agent ‘Documents generation from kiosk’ error: Error loading USE or USELSX module: CLogMQ Java

Any help will be greatly appreciated !!!

Here the enviroment variables:

export PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/db2inst/sqllib/bin:/db2inst/sqllib/lib:/usr/bin/X11:/sbin:$PATH

The following three lines have been added by UDB DB2.

. /db2inst/sqllib/db2profile

#LIBPATH definida pelo USA LAB:

export LIBPATH=/usr/mqm/java/lib:/usr/lpp/lotus/notes/latest/ibmpow:/usr/lpp/lotus/notes/latest/ibmpow/jvm/bin:/usr/lpp/lotus

/notes/latest/ibmpow/jvm/bin/classic:/usr/lpp/lotus/notes/latest/ibmpow/bin:/usr/lib:/lib:/db2inst/sqllib/lib:/db2inst/sqllib

/bin:/db2inst/sqllib/adm:/usr/java130/jre/bin:/usr/lpp/lotus/notes/60020/ibmpow/jvm/bin:/usr/mqm/ssl/jre/bin

commands and environment variables for all environments

export PATH=:/usr/mqm/java/lib:/usr/java130:/usr/java130/bin:~/notesr5:/usr/lpp/lotus/bin:~/bin:$PATH:.:/usr/java130/jre/bin:

/usr/lpp/lotus/notes/60020/ibmpow/jvm/bin:/usr/mqm/ssl/jre/bin

export ENV=$HOME/.kshrc

set -o vi

Notes Environment Set Up

export NOTES_PATH=/notes:/usr/lpp/lotus/bin:/notes/notesr5

export NOTES_ISOLATION=1

export Notes_SHARED_SPOOLSIZE=250000000

export Notes_ExecDirectory=/opt/lotus/notes/latest/ibmpow

export DEBUG_ENABLE_CORE=1

export NOTESFATAL_SEND=“garruda.br.ibm.com”

export NOTES_DATA_DIR=/notes/notesr5

#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lpp/mqm/mqlsx/lib:/usr/mqm/java/lib:/usr/java130/jre/bin:/usr/lpp/lotus/notes/6

0020/ibmpow/jvm/bin:/usr/mqm/ssl/jre/bin

export MQ_JAVA_INSTALL_PATH=/usr/mqm/java

export CLASSPATH=.:/usr/lpp/lotus/notes/latest/ibmpow/Notes.jar:/usr/lpp/lotus/notes/latest/ibmpow/XML4j.jar:/usr/lpp/lotus/n

otes/latest/ibmpow/LotusXSL.jar:/usr/lpp/lotus/notes/latest/ibmpow/jsdk.jar:/usr/lpp/lotus/notes/latest/ibmpow/dservlet.jar:/

usr/lpp/lotus/notes/latest/ibmpow/jvm/lib/rt.jar:/usr/lpp/lotus/notes/latest/ibmpow/jvm/lib/i18n.jar:/usr/lpp/lotus/notes/lat

est/ibmpow/jvm/lib/tools.jar:/usr/mqm/java/lib:/usr/mqm/samp/java/jms:/usr/mqm/samp/java/base:/usr/mqm/java/lib/jms.jar:/usr/

mqm/java/lib/jta.jar:/usr/mqm/java/lib/jndi.jar:/usr/mqm/java/lib/ldap.jar:/usr/mqm/java/lib/connector.jar:/usr/mqm/java/lib/

fscontext.jar:/usr/mqm/java/lib/providerutil.jar:/usr/mqm/java/lib/postcard.jar:/usr/mqm/java/lib/com.ibm.mq.jar:/usr/mqm/jav

a/lib/com.ibm.mqjms.jar:$CLASSPATH

nohup /home/image/Procesos/Server/Monitor/ShootAgents $1 $2 $3& >nohup.log 2>&1