Create .jar files in java without using IDE
<p>I am trying to create .jar files in java which can be used by including it in other projects. It doesn't contain any main but only classes and methods. I am using th following command to create .jar file from command line </p>

<pre><code>jar cf firstjar.jar *
</code></pre>

<p>I am including the jar file in my project but still the class is not available in the project.
What's the problem in this. </p>
