STAFProc is a C++ application and all of it's internal services are
written in C++ plus some external services like LOG, ZIP, MONITOR, and
RESPOOL. The STAF Java APIs interface with the C++ APIs using JNI. So,
probably because it's not just Java involved, but C++ too, you need
LD_LIBRARY_PATH set.
Note: We have a feature open to look at how STAF could be changed to not
require the LD_LIBRARY_PATH environment variable to be set, but this
feature is still in the investigation stage.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, [EMAIL PROTECTED]
(512) 838-8347 or Tieline 678-8347
"Jesse Millan" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
01/31/2008 10:58 PM
To
staf-users@lists.sourceforge.net
cc
Subject
[staf-users] java.library.path vs. LD_LIBRARY_PATH
Maybe this has been covered before =)
Why is it that I am experiencing all sorts of runtime library woes
when trying to pass the staf library directory via java.library.path
system property instead of setting the LD_LIBRARY_PATH environment
variable. Strangely, a runtime print out of java.library.path is
equivalent, referencing the correct STAF library directory, when the
path is passed by either the -Djava.library.path=/staf/lib system
parameter or by setenv LD_LIBRARY_PATH /staf/lib.... i.e. both set
java.library.path to the lib dir.
I thought that in java, java.library.path *is* the LD_LIBRARY_PATH.
But when using the STAF Java API, it causes troubles.
Could someone explain this?
-Jesse Millan
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users