Sign in to follow this  

Java: Exporting a jar

Recommended Posts

DrJohnSmitherson    131

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?

Share this post


Link to post
Share on other sites
kjordan2001    156

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.

Share this post


Link to post
Share on other sites
DrJohnSmitherson    131

Ok thanks!

Share this post


Link to post
Share on other sites
DrJohnSmitherson    131

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?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.