Install JDK under Fedora7

Source: Internet
Author: User
Today I installed a Fedora7 with no java environment in it. I had a binfile, but I couldn't install it. I was depressed. I tried it for N times, the online method is chmod + xxxxx. bin and then execute. /xxxx. bin. I tried and always reported such an error. /java_app_platform_sdk-5_02-linux.bin: errorwhileloadingsharedlibraries: lib

Today I installed a Fedora7 with no java environment in it. I had a binfile, but I couldn't install it. I was depressed. I tried it for N times, the online method is chmod + x xxxx. bin

Then execute./xxxx. bin. I tried and always reported such an error.

. /Java_app_platform_sdk-5_02-linux.bin: error while loading shared libraries: libstdc ++. so.5: cannot open shared object file: No such file or directory. How can someone else not meet it? Just use the two commands and check it again, find the libstdc library in a Foreign Forum and report the error. Run the command yum install compat-libstdc ++-33 and install it.

This is really easy to use./xxxx. bin. It seems that it will be easy to use this online installation command for a few library files in the future.

Restrictions on permissions during installation are still quite troublesome. I started to directly run su root and then run the old command under root. The error is as follows:

Extracting installation files...
Launching Java (TM) 2 Runtime Environment...
Xlib: connection to ": 0.0" refused by server
Xlib: No protocol specified

To access the Internet, you have to switch to a common user. However, you must first grant the user permission to chmod a + x xxxx. bin su, and then execute./xxxx. bin.

Finally, use rpm-ivh xxxx to generate the rpm package. I installed jdk1.6 with rpm. It is estimated that sun has set the environment variables when installing it, on the terminal side, you can directly view your jdk version using java-version.

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.