Step-by-step Creation of Executable Jar for Java
1. Start Command Prompt. 2. Navigate to the folder that holds your class files: C:\>cd\ C:\>cd java-code 3. Set path to include JDK’s bin. For example: C:\java-code> SET PATH=%PATH%:c:\Program Files\Java\jdk1.5.0\bin 4. Compile your class(es): C:\java-code> javac TestForm.java C:\java-code> javac Main.java 5. Create a manifest file: C:\java-code> echo Main-Class: Main >manifest.txt 6. Create a jar file: C:\java-code> jar cvfm welcome.jar manifest.txt Main.class TestForm.class 7. Test your welcome.jar: C:\java-code> welcome.jar
And that’s it we’re done.
Belfry 2:14 pm on March 19, 2008 Permalink |
Sir,,
sir..plss dili gyud cya mogana ang jar… error: could not find the main class.Program will exit
sir tabang…sir plsss kani na lang gyud pag jar …
Agustin 8:35 pm on March 19, 2008 Permalink |
Sir,,
Unsa diay possible cause y pagjar namu kay ni error.. ingon “could not find the main class. Program will exit.”
libug jud sir…
la me kabalo unsa sunod buhaton
Joy 7:08 pm on October 17, 2009 Permalink |
Sir,unsaon pagpadisplay sa xml data sa jtable? plz. reply…asap.. mao na kng jud na amo kulang sir… plz..
help us…..