(Original example) How does one determine the warning information of "libxp. so.6: cannot open shared object file: no such file or directory" in Java on Linux? (O

Source: Internet
Author: User

Abstract
Libxp. so.6 is a library of xfree86. Generally, when you attempt to write a GUI written by Java, the above response message is displayed.

Introduction
Migration environment: centos 5.1 + JDK 1.4.2.17

The following warning information may appear during the execution of the GUI written in Java, such as MATLAB and Oracle.

Exception in thread " Main " Java. Lang. unsatisfiedlinkerror:/usr/Java/j2sdk1 . 4 . 2 _ 17 /JRE/lib/i386/libawt. So: libxp. So . 6 : Cannot open shared object file: no such file or directory

The reason is that libxp. so.6 library cannot be found under/usr/lib.

Solution

Step 1:

[ Root @ localhost/ ] # Yum install libxp. So . 6

Results

[ Root @ localhost/ ] # Yum install libxp. So . 6
Loading " Installonlyn " Plugin
Setting up install process
Setting up Repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for libxp to pack into transaction set.
Libxp- 1.0.0 - 8.1 . El5.i386. 100 % | ====================================== | 6.9 KB 00 : 00
---> Package libxp. i386 0 : 1.0.0 - 8.1 . EL5 set to be updated
--> Running transaction check

Dependencies resolved

========================================================== ============================================
Package arch version repository size
========================================================== ============================================
Installing:
Libxp i386 1.0.0 - 8.1 . EL5 Base 23 K

Transaction Summary
========================================================== ============================================
Install1Package (s)
Update0Package (s)
Remove0Package (s)

Total download size: 23 K
Is this OK [ Y/n ] : Y
Downloading packages:
( 1 / 1 ): Libxp- 1.0.0 - 8.1 . El 35 % | ========== | 8.0 KB ( 1 / 1 ): Libxp- 1.0.0 - 8.1 . El 70 % | ======================== | 16 KB ( 1 / 1 ): Libxp- 1.0.0 - 8.1 . El 100 % | ====================================== | 23 KB 00 : 03
Running transaction Test
Finished transaction Test
Transaction test succeeded
Running transaction
Installing: libxp installing: libxp ##################### installing: libxp ##################### installing: libxp ###################### installing: libxp ###################### installing: libxp ######################## installing: libxp ######################## installing: libxp ######################## installing: libxp #########################[ 1/1 ]  

Installed: libxp. i3860:1.0.0-8.1. EL5
Complete!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.