• 0

Java: Exporting a jar


Question

Hey guys, when I use Eclipse to export a jar I choose the option "Extract required libraries into generated JAR" What does this mean for the end user? Do they only require Java? Or does that include the files needed for Java to run so the end user doesn't have to install it themselves?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

That will put any libraries you have added to your project as class files inside your exported jar. This means they only need 1 jar file. Yes, they will still need to have the JVM installed.

Link to comment
Share on other sites

  • 0

Ok, so I reformated my laptop and when I was using eclipse on my laptop I exported my program but it was only 175kb but it still worked! Could I be exporting too many libraries on my desktop which is making my program too large?

Link to comment
Share on other sites

This topic is now closed to further replies.