Wednesday, September 26, 2012

can't find libjava.so when running adcfgclone.pl appsTier


Problem: Getting below error while running adcfgclone.pl appsTier in one of my Client (MmCcDd) Environment (R12)
=======
apperps1> vi  /tmp/adcfgclone_57147544.err
apperps1> cat /tmp/adcfgclone_57147544.err
Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment.
apperps1>


Solution:
=========

a. Find out which java with application user.

 /u01/apps/erps1/product/10.1.3/appsutil/jdk/jre/bin/java


b. cd  /oraprod/apps/prodcomn/clone/bin/../jre/bin/ and find out if any java directory exist's
apperps1> pwd
/u01/apps/erps1/common/clone/jre/bin
apperps1> ls -ld java
-rwxr-xr-x    1 apperps1 dba          311625 Sep 15 14:08 java

c. Now move/copy that directory
mv java java_old

d. Now, make a softlink to the step one.
ln -s java
apperps1> ln -s /u01/apps/erps1/product/10.1.3/appsutil/jdk/jre/bin/java java

e. Now, Run perl adcfgclone.pl appsTier again