Create a jar file from the java code
<p>i want to create a jar file from java program i looked at some examples <a href="http://stackoverflow.com/questions/2977663/java-code-to-create-a-jar-file">Java code to create a JAR file</a> but it didnt impressed me as this will not create the proper package structure my original command was </p>

<pre><code>jar -cfv formBuilder.jar .\com\accenture\* .\com\wysiwyg\util\XmlUtil.class  .\com\wysiwyg\exception\ApplicationException.class .\com\wysiwyg\constants\*.class .\com\wysiwyg\util\FormBuilderUtill.class .\com\wysiwyg\util\SaveFormOnLocalUtil.class .\com\wysiwyg\logger\LogInfo.class  .\com\wysiwyg\factory\Validation.class 
</code></pre>

<p>now i want to do the same using java code but without ant, and proper package structures should be created, is this feasible?</p>
