• Post Reply Bookmark Topic Watch Topic
  • New Topic

Dependent JAR and Source JAR ?  RSS feed

 
Arnold Strong
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is a dependent JAR and what is a source JAR ? Why are they needed ?
I saw it in the sentence:
Dependent jars can be found in the libs folder and the corresonding source jars can be found in the libs-sources folder.

 
William P O'Sullivan
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A dependent jar is something your application needs to work, e.g: log4j.jar, db2java.zip, spring-core.jar

Source jar is your application packaged as a jar.

WP
 
Junilu Lacar
Sheriff
Posts: 11494
180
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
William P O'Sullivan wrote:Source jar is your application packaged as a jar.

WP

You probably meant "your application source code packaged as a jar"
 
Arnold Strong
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why would someone want to package their source code as a JAR ???
 
Junilu Lacar
Sheriff
Posts: 11494
180
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arnold Strong wrote:Why would someone want to package their source code as a JAR ???
To distribute, along with the executable. IDEs like Eclipse can use the source jar during debugging, if it is available. A JAR is simply a ZIP with specific folder/file structure.
 
James Boswell
Bartender
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A source jar is the source code for any application, not just your own. As already pointed out, you may need this to attach the source to your IDE for debugging purposes. Most jars stored in the Central Maven repository also have a source jar which you can automatically download within eclipse.
 
Paul Clapham
Sheriff
Posts: 22841
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arnold Strong,
Your post was moved to a new topic.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!