<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=JAVA%3A_Convert_.java_ke_.jar</id>
	<title>JAVA: Convert .java ke .jar - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=JAVA%3A_Convert_.java_ke_.jar"/>
	<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=JAVA:_Convert_.java_ke_.jar&amp;action=history"/>
	<updated>2026-04-06T05:04:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.4</generator>
	<entry>
		<id>https://onnocenter.or.id/wiki/index.php?title=JAVA:_Convert_.java_ke_.jar&amp;diff=69748&amp;oldid=prev</id>
		<title>Onnowpurbo: Created page with &quot;Sumber: https://stackoverflow.com/questions/9941296/how-do-i-make-a-jar-from-a-java-file  Simply with command line:   javac MyApp.java  jar -cf myJar.jar MyApp.class  Sure IDE...&quot;</title>
		<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=JAVA:_Convert_.java_ke_.jar&amp;diff=69748&amp;oldid=prev"/>
		<updated>2023-08-19T02:55:25Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Sumber: https://stackoverflow.com/questions/9941296/how-do-i-make-a-jar-from-a-java-file  Simply with command line:   javac MyApp.java  jar -cf myJar.jar MyApp.class  Sure IDE...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Sumber: https://stackoverflow.com/questions/9941296/how-do-i-make-a-jar-from-a-java-file&lt;br /&gt;
&lt;br /&gt;
Simply with command line:&lt;br /&gt;
&lt;br /&gt;
 javac MyApp.java&lt;br /&gt;
 jar -cf myJar.jar MyApp.class&lt;br /&gt;
&lt;br /&gt;
Sure IDEs avoid using command line terminal&lt;br /&gt;
&lt;br /&gt;
Ok this is the solution I would have liked to find, instead here I write it:&lt;br /&gt;
&lt;br /&gt;
First create the directory structure corresponding to the package defined for the .java file, if it is my.super.application create the directory my and inside it super and inside it the .java file App.java&lt;br /&gt;
&lt;br /&gt;
then from command line:&lt;br /&gt;
&lt;br /&gt;
 javac -cp /path/to/lib1.jar:/path/to/lib2.jar path/to/my/super/App.java&lt;br /&gt;
&lt;br /&gt;
Notice the above will include multiple libraries, if under windows use &amp;quot;,&amp;quot; to separate multiple files otherwise under GNU/Linux use &amp;quot;:&amp;quot; To create a jar file&lt;br /&gt;
&lt;br /&gt;
 jar -cvfe App.jar App my/app/&lt;br /&gt;
&lt;br /&gt;
the above will create the application with its corresponding Manifest indicating the App as the main class.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Referensi==&lt;br /&gt;
&lt;br /&gt;
* https://stackoverflow.com/questions/9941296/how-do-i-make-a-jar-from-a-java-file&lt;br /&gt;
&lt;br /&gt;
==Pranala Menarik==&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>