How to export a jar with only dependencies set to export in eclipse?

So I have some code as well as some dependencies / libraries.

I have some of the libraries set up for export (stuff like JSON and another jar that I created) and some not (mostly JUnit).

When I go to the Rclick> export> java> Jar File project, it doesn't add any of the libraries.

When I go to Rclick> export> java> Runnable Jar File project, it adds EVERY library.

How do I create a jar file with only the dependencies I choose?

+3
java eclipse jar dependencies


source to share


No one has answered this question yet

Check out similar questions:

2240
How to create an executable JAR with dependencies using Maven?
1367
Fastest way to determine if an integer square root is an integer
1248
How can you speed up Eclipse?
805
How to install Java 8 on Mac
676
Is it possible to add jars to the maven 2 build classpath without installing them?
478
IntelliJ Inspection gives "Cannot resolve symbol" but still compiles the code
196
How to install java.library.path from Eclipse
158
Build project in JAR automatically in Eclipse
8
Exclude JUnit from Eclipse exported JAR
7
Exporting executable Java class to .jar file including required dependencies only



All Articles
Loading...
X
Show
Funny
Dev
Pics