java.lang.UnsatisfiedLinkError: no JniNativeOsUtils in java.library.path

While working with Oracle's UCM, I found an issue with my install.  The native OS utils was not being found in the library path.  I'm not sure why the UCM installer doesn't take care of this.

Here was the first part of the stack trace:
java.lang.AssertionError: !syNativeOsUtilsNotLoaded
    at intradoc.common.NativeOsUtilsBase.doLoad(NativeOsUtilsBase.java:386)
    at intradoc.common.NativeOsUtilsBase.<init>(NativeOsUtilsBase.java:352)

Here was the fix:

Find the right lib in the directory:
...mwhome.../Oracle_ECM/ucm/idc/components/NativeOsUtils/lib/(OS)/(Version)

Replace 'OS' and 'Version' with what is important for you.  Then add the line in the setDomainEnv.sh/cmd script to include this directory in your library path.  For me (Linux/32bit), it looked like this:

export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/oracle/fmwhome/Oracle_ECM1/ucm/idc/components/NativeOsUtils/lib/linux/7.2.1.0

I tried adding this to the java.library.path, but the scripts kept overriding it.  Perhaps there is another 'better' way.


Comments:

Hi John,

LD_LIBRARY_PATH didn't work for me, but I was able to make it work wiht this entry in setDomainEnv.cmd (Win7-64):

@REM Added this line to satisfy "java.lang.UnsatisfiedLinkError: no JniNativeOsUtils in java.library.path" error
set EXTRA_JAVA_PROPERTIES=%EXTRA_JAVA_PROPERTIES% -Djava.library.path=C:\Oracle\Middleware\Oracle_ECM1\ucm\idc\components\NativeOsUtils\lib\win32\7.2.1.0

It made the error go away, but I don't know whether this falls into the area you commented on where the scripts keep overriding it. But I'm going to keep it in my back pocket, just in case :-)

~Chris

Posted by guest on February 01, 2012 at 04:45 AM EST #

It also worth looking into "java.library.path" if you ever get this error as dll and .so files are picked from this path as discussed on http://javarevisited.blogspot.sg/2012/03/javalangunsatisfiedlinkerror-no-dll-in.html

Posted by guest on June 13, 2012 at 07:17 PM EST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

me

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today