LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Exception in thread "main" java.lang.UnsatisfiedLinkError: (https://www.linuxquestions.org/questions/linux-newbie-8/exception-in-thread-main-java-lang-unsatisfiedlinkerror-799941/)

Respinoza 04-04-2010 09:56 AM

Exception in thread "main" java.lang.UnsatisfiedLinkError:
 
Hi:

I have an intel i7 with windows7 64b , then install VMware Workstation and create a machine with Oracle enterprise Linux 64b 5update4, now i want to inatall oracle db10gR2, but this message apears


[oracle@localhost database]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2010-04-04_09-51-42AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
at sun.awt.DebugHelper.<clinit>(Unknown Source)
at java.awt.Component.<clinit>(Unknown Source)

paulsm4 04-04-2010 12:27 PM

It's an Oracle problem. Look here:
Quote:

http://www.ora600.be/node/1816

PROBLEM:
Problem Description
Whenever you run Oracle Universal Installer to install oracle software it fails with Exception java.lang.UnsatisfiedLinkError indicating libXp.so.6: cannot open shared object file: No such file or directory.

$./runInstaller
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2009-03-02_10-57-23AM. Please wait ...$oracle Universal Installer , Version 10.2.0.1.0 Production
Copyright (C) 1999, 2005, Oracle. All rights reserved.

Exception java.lang.UnsatisfiedLinkError: /tmp/OraInstall2009-03-02_10-57-23AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory occurred..
java.lang.UnsatisfiedLinkError: /tmp/OraInstall2009-03-02_10-57-23AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
at sun.awt.DebugHelper.<clinit>(Unknown Source)
at java.awt.Component.<clinit>(Unknown Source)

ROOT CAUSE:
Oracle tries to open the shared object file libXp.so.6 but it could not find any. In RHEL 4 and from fedora core release (1,2,3,4 ....) "libXp.so.6" is deprecated and as such, the "xorg-x11-deprecated-libs" package is missing.

If available, then "libXp.so.6" should be found in the /usr/X11R6/lib64 directory of Linux.

On disk 2 of the linux installation CD "libXp.so.6", is available under rpm package,

xorg-x11-deprecated-libs-<version>6.8.1-12.i386.rpm

SOLUTION:
Install the missing "xorg-x11-deprecated-libs" package.
1)Issue the following command to be sure whether libXp is missing,
$ rpm --query --whatprovides 'libXp.so.6'

or by,
$ rpm --query --whatprovides 'libXp.so.6'
2)Install the package by,
# rpm -ivh xorg-x11-deprecated-libs.<version-info>.rpm

Examples of rpm packages containing libXp.so.6 are,
xorg-x11-deprecated-libs-6.8.1-12.i386.rpm,
xorg-x11-deprecated-libs-6.8.2-31.i386.rpm
'hope that helps .. PSM

Respinoza 04-11-2010 11:10 AM

Quote:

Originally Posted by paulsm4 (Post 3923945)
It's an Oracle problem. Look here:


'hope that helps .. PSM

well there is no file "xorg-x11-deprecatedlibs-<version>6.8.1-12.i386.rpm" on iso, my question is May i look for it?

Thanks a lot


All times are GMT -5. The time now is 04:26 AM.