How can I include a dependency (external.jar
) for an executable jar file?
Asked
Active
Viewed 146 times
0
-
why you don't include your jars in your jar ? – Youcef LAIDANI Mar 09 '17 at 14:16
-
1Yes, you can. Go for it! – Guy Mar 09 '17 at 14:16
-
without using maven – Garsov Mar 09 '17 at 14:17
-
yes you can include your jars in your jar – Youcef LAIDANI Mar 09 '17 at 14:18
-
what IDE you are using eclipse or netbeans or what? – Youcef LAIDANI Mar 09 '17 at 14:20
-
i want to add dependency without access to the source code – Garsov Mar 09 '17 at 14:21
-
Try this http://stackoverflow.com/questions/9617420/difference-between-extracting-and-packaging-libraries-into-a-jar-file – HaroonIsmailbasha Mar 09 '17 at 14:24
-
@HaroonIsmailbasha , yes it was helpful and i think it can solve my problem , but i don't understand how to do it – Garsov Mar 09 '17 at 15:01
1 Answers
0
Please Check whether this is helpful..
Right click on project and select Export and then runnable jar file. then use below link and screenshot.
Link for Packaging/Extracting explanation. Difference between extracting and packaging libraries into a jar file
In Eclipse:

Community
- 1
- 1

HaroonIsmailbasha
- 138
- 1
- 8