Difference between .jar and .dll file
<p>I am learning Java these days and I've spent a lot of time with .NET so when I want to export or import libraries, they are usually be in .dll format which is called assembly in .Net environment and they are compiled to IL and they can have resources like images, xml, audio and son on, any ways.</p>

<p>I am wondering same process in Java as well. I've read documents but they actually confused me little bit and to clarify things out I need your help guys.</p>

<p><strong>Questions:</strong></p>

<ol>
<li>.NET Assembly is same thing as java .jar?</li>
<li>.dll contains compiled IL code and .jar contains complied .class/byte code files?</li>
<li><p>They say resources, what kind of resources we are talking about here? Images, .txt files, etc. or all of them possible?</p></li>
<li><p>I've examined AWS (Amazon Web Service API for java) and I saw three .jar file and they are </p>

<ol>
<li>aws-java-sdk-1.1.1.jar</li>
<li>aws-java-sdk-1.1.1-javadoc.jar</li>
<li>aws-java-sdk-1.1.1-sources.jar</li>
</ol></li>
</ol>

<p>and they contain .class files - java documentation in html format and .java files which are still not compiled. So then I've realized .jar doesn't just include compiled byte codes (.class) and also other things.</p>

<ol>
<li>When I want to import java libraries, will I always need to import .jar files?</li>
<li>When I want to export my own java libraries, should I need to export in .jar file.</li>
</ol>

<p>Thanks for help in advance.</p>
