Jump to content



Photo

Java: Exporting a jar

java export jar libraries

  • Please log in to reply
3 replies to this topic

#1 thatguyandrew1992

thatguyandrew1992

    Neowinian Senior

  • Tech Issues Solved: 3
  • Joined: 22-January 09

Posted 27 June 2012 - 04:38

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?


#2 kjordan2001

kjordan2001

    Mystery Solver

  • Tech Issues Solved: 1
  • Joined: 27-May 02

Posted 27 June 2012 - 06:36

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.

#3 OP thatguyandrew1992

thatguyandrew1992

    Neowinian Senior

  • Tech Issues Solved: 3
  • Joined: 22-January 09

Posted 27 June 2012 - 22:47

Ok thanks!

#4 OP thatguyandrew1992

thatguyandrew1992

    Neowinian Senior

  • Tech Issues Solved: 3
  • Joined: 22-January 09

Posted 30 June 2012 - 04:28

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?