title: Difference between .jar and .dll file
body: <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 in .dll format which is called assemblies in .NET environment and they are compiled to IL and they can have resources like images, XML, audio and so on, anyways.</p>
  <p>I am wondering the same process in Java as well. I've read documents but they actually confused me a little bit and to clarify things out I need your help guys.</p>
  <p><strong>Questions:</strong></p>
  <ol>
  <li><p>.NET Assembly is the same thing as Java .jar?</p>
  </li>
  <li><p>.dll contains compiled IL code and .jar contains compiled .class/byte code files?</p>
  </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 start="5">
  <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>