How I generate a .jar in eclipse with all the libraries [closed]

1

I need to generate a .jar in eclipse but it depends on some libraries and when I export and use it I mentioned that it does not find the library that is needed, someone could help me, in advance thank you very much

    
asked by Roberto Ramos 19.04.2017 в 01:01
source

2 answers

2

1.- You must right click on the project then Export

2.- Select Runnable Jar File

3.- You must leave everything equal to the photo:

Note: Jar File and Runnable are very similar so do not stress that.

I hope it's helpful Greetings.

    
answered by 19.04.2017 / 01:26
source
1

I do not have much context as to how you generate the .jar but if it works for you I generate it in the following way and I have not had any problem for library issues:

  • File > Export the option is chosen:

  • You are given Next and it gives you the following options:

  • In Launch Configuration the main class of the .jar to execute is chosen (the one with the main), Export destination is the path where the JAR will be generated and the Extract required linreries into generated JAR is selected

I hope I can serve you, as I tell you, there are not many details of what you want to do.

    
answered by 19.04.2017 в 01:20