Problems with jdkeclipse installation in ubuntu12

Source: Internet
Author: User
Ubuntu 12 installation of jdk eclipse problems oracle provides two methods to install jdk 1. is automatically installed using the rpm Package 2. I decompress the tar package by myself. I used the rpm automatic installation package when I first started using linux. the first problem encountered was that j cannot be used in the shell after installation...
Problems with jdk eclipse installation in ubuntu 12 oracle provides two methods to install jdk 1. is automatically installed using the rpm Package 2. I decompress the tar package by myself. I used the rpm automatic installation package when I first started using linux. the first problem encountered was that after installation, the shell could not use java commands. Check the environment variables. Later, google found that tools. jar in lib under the java installation directory was changed to tools. pack. The rt. jar file is also normal. Run the unpack200 command to package the two packages into a jar file. The java command is normal. I still don't know where to use apt-get to get a oracle-java7-installer package. This package has a problem. It cannot be uninstalled or reinstalled. Continue to google. Because java has been installed. So we hope to uninstall it. Then find an article. First, go to the/var/lib/dpkg/info Directory. Delete all oracle-java7-installer-related files. Www.2cto.com cd/var/lib/dpkg/infosudo rm oracle-java7-installer * and then uninstall the installation record in apt-get 1 sudo apt-get remove -- purge oracle-java7-installer to handle jdk problems. Then download eclipse-j2ee 4.2 for normal decompression. Start. Error ..... A window is displayed. Window information. The first few lines intentionally contain code = 13, indicating that the error number is 13. continue to google. Most of the websites either have insufficient memory. Or the jdk version is incorrect. Continue searching. Find a document that says there are issues with several jar packages in jdk. Open the jdk package. A look. How many jar packages are supported. Many jar packages are still pack files. Www.2cto.com, return to oracle and re-download the jdk package from tar. Overwrite the original location. Eclipse started successfully. To sum up. These problems are mainly caused by rpm packages. I guess ubuntu alice's rpm Package conversion is not complete. As a result, the pack cannot be properly packaged. It is estimated that files in the rpm package will be processed when the rpm Package is directly installed in other versions of linux. Therefore, it is better not to use the rpm package below unbuntu. Author architecture dream

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.