0

I have to build a jar by exporting my project. I used some third party jars / APIs in my project. I have added them to my build path.

Now I have to exclude those third party jars and build my jar. I tried removing them from build path but my jar isn't working properly.

halfer
  • 19,824
  • 17
  • 99
  • 186
user2037445
  • 161
  • 1
  • 2
  • 11
  • I don't think this question gives much of an account of what has been done (e.g. on the command line) so am voting to close as not containing enough detail. – halfer Dec 18 '15 at 22:55
  • @halfer There is a certain way you add jars to dependencies in Eclipse. I'm voting to leave this as clear enough. – Basilevs Dec 19 '15 at 12:57
  • It is almost definitely a duplicate though. – Basilevs Dec 19 '15 at 12:57
  • @Basilevs, I'm happy for it to be closed as a dup instead. As it stands this Q/A pair don't shed much light on the topic, and I'd guess since there's not much to respond to, new answers are unlikely now. It's good to trim old material if it doesn't offer much long-term value, IMO. – halfer Dec 19 '15 at 13:10

1 Answers1

0

In the export dialog, there is an option "Library handling". Choose "Copy required libraries into a subfolder...", instead of extracting or packaging.

Stefan
  • 12,108
  • 5
  • 47
  • 66