Skip to main content
Summary What load library path is Orbix using?
Article Number 29427
Environment Orbix All Supported Platforms 6.3.X
Question/Problem Description

What load library path is Orbix using and where is this configured?
How to set the library path?
How to set the Orbix dll path?
How to set the Orbix shared library path?

Clarifying Information
Error Message
Defect/Enhancement Number
Cause
Resolution Note that these environment settings are done by the <domain>_env[.bat] file. This article is just to add some more detail on how to do this.

1. Windows

In a Windows Environment the location of the Orbix libraries and Java jvm must be added to the PATH variable. Generally these variables are not  added to your system's PATH environment variables, but instead are initialized by a configuration bat file before a process is run. The standard location for the initialization file is  <<Orbix Installation>>\\etc\\bin\\<<domain name>>_env.bat. Inside this file the PATH should be reinitialized to:

set PATH=<<Orbix Path>>\\bin;<<Java JDK Path>>\\jre\\bin\\server;%PATH%

If you are running Orbix 64 bit then you should the Java jvm should also be 64 bits. If you are running Orbix 32 bit then the Java JVM must also be 32 bits.

2. AIX

In an AIX environment the location of the Orbix libraries must be added to the LIBPATH variable. Generally these variables  are initialized by an executable configuration file before a process is run. The standard location for the initialization file is  <<Orbix Installation>>\\etc\\bin\\<<domain name>>_env. Inside this file the LIBPATH should be reinitialized to:

LIBPATH=<<Orbix Path>>/shlib:<<Orbix Path>>/shlib/default:<<Java JDK Path>>/jre/bin/:<<Java JDK Path>>/jre/bin/classic:<<Java JDK Path>>/jre/bin/j9vm:$LIBPATH

Please note that j9vm and classic both contain a copy of the java jvm. You could choose j9vm over classic by changing the order inside the include. 

3. Solaris/Linux:
In a Solaris or Linux environment the location of the Orbix libraries must be added to the LD_LIBRARY_PATH variable. Generally these variables  are initialized by an executable configuration file before a process is run. The standard location for the initialization file is  <<Orbix Installation>>\\etc\\bin\\<<domain name>>_env. Inside this file the LD_LIBRARY_PATH should be reinitialized to:

Solaris :

LD_LIBRARY_PATH=<<Orbix Path>>/shlib/sparc9:<<Orbix Path>>/shlib/default/sparc9:<<Java JDK Path>>/jre/lib/sparc9/server/:<<Java JDK Path>>/jre/lib/sparc9:$LD_LIBRARY_PATH

For Linux 32 bit:

LD_LIBRARY_PATH=<<Orbix Path>>/shlib:<<Orbix Path>>/shlib:<<Orbix Path>>/shlib/default:<<Orbix Path>>/shlib:<<Orbix Path>>/shlib/lib64:<<Orbix Path>>/shlib/default/lib64:<<Java JDK Path>/>jre/lib/i386/server:<<Java JDK Path>>jre/lib/i386:$LD_LIBRARY_PATH

For Linux 64 bit:

LD_LIBRARY_PATH=<<Orbix Path>>/shlib:<<Orbix Path>>/shlib/lib64:<<Orbix Path>>/shlib/default/lib64:<<Java JDK Path>/>jre/lib/amd64/server:<<Java JDK Path>>jre/lib/adm64:$LD_LIBRARY_PATH



Workaround
Notes
Micro Focus Article(s):
000029563, "What is an Orbix scope and which variables are visible inside of a  scope."
Attachment

Created date: 01 March 2012
Last Modified: 21 May 2013
Last Published: 17 May 2012
First Published date: 14 March 2012


#KnowledgeDocs
#Orbix