If you read my thoughts about security features implemented in LockBox carefully, you may find that I do not setup environment variables to make LockBox libraries work – I use clb.library.path system property to setup location of LockBox libraries. Why do I do so? The answer is simple: it’s more convenient than setup environment variables, moreover, as I found out, a lot of windows users experience difficulties with environment variables when trying to setup LockBox for different applications on the same machine.
So, instead of modifying PATH environment variable (or LD_LIBRARY_PATH on UNIX) just add -Dclb.library.path=<path to LockBox libraries> to java command-line arguments:
~]$ java -cp D2.jar:LB.jar:LBJNI.jar \ > -Dclb.library.path=./linux_gcc34_x64 com.emc.common.java.crypto.SetLockboxProperty \ > lockbox D2Method.passphrase test JVM : 1.7.0_09-icedtea (64bits) 'lockbox/D2.lockbox' file updated 'D2Method.passphrase' property updated ~]$