On Friday Jun 2, 2000, yangyuex wrote:

> I just try to use IBMJava2-13.
> I cannot run java in other directory other than /opt/IBMJava2-13/.
> However, I already :
> 
> export PATH=/op/IBMJava2-13/bin:/opt/IBMJava2-13/jre/bin:$PATH
> 
> When I run java in other directory, the error occurred: "cannot find libjvm.so".
> However, I am sure this file is in /opt/IBMJava2-13/jre/classic/.
> Even I add this to PATH, no difference.
> 
> In order to solve this problem, I use alias command. Although it does work,
> I feel there is other way to solve this problem.
> My system is redhat6.1.

You need to add the directory (directories)  containing the
libraries to your LD_LIBRARY_PATH, not PATH.

To make this work for the Bourne shell, type:

export 
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/IBMJava2-13/jre/bin:/opt/IBMJava2-13/jre/bin/classic

You need to add both the jre/lib and jre/lib/classic directories.

-John

----------------------------------------------------------------
John Rousseau                               [EMAIL PROTECTED]
SilverStream Software                     Phone: +1 978 262 3564
2 Federal Street                            Fax: +1 978 262 3499
Billerica, MA 01821                  http://www.silverstream.com
----------------------------------------------------------------


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to