How to bind a jar file in eclipse?
How can I bind a 3rd party library (.jar file) in my java so开发者_运维问答urce? Are there any tutorials for this?
I normally drag-and-drop the jar file in the project (in a suitable folder), and then right click it and select Build path -> Add to build path.
You can now use it in your project.
- Right click the project in question
- Point to build path
- Click "Configure Build Path" in the menu that open
- Click "Add External JARs" -- find your JAR
- Click OK
You'll need to package your external JAR with your main application if you distribute it. But that'll at least get you going in Eclipse.
-- Dan
精彩评论