How to add third-party jar packages in eclipse RCP

Source: Internet
Author: User

Today, I am going to make an XML parsing demo. I want to use JDOM. Jar. After the project is added, the compilation will go wrong, And the deletion will still be the same. I am depressed for a while.

Now share the methods.

1. Create a New lib directory in the project and copy JDOM. jar to the directory.

2. Open the build on the plugin. xml tab and you will see the extra classpath entries at the bottom,

 

3. You are still on the build page of plugin.ProgramCheck the output directory (BIN) and the directory (LIB) where your jar is located, so that the output will contain the compiled files and third-party libraries,

4. Switch to the runtime page of plugin, and put the output directory (BIN) of your program and all jar files (LIB/hello. jar) are added, so it is basically complete,

 

Related Article

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.