Create java executable jar file:
1.open cmd.exe (command prompt) for creating jar file
jar cvfm MyJarName.jar manifest.txt *.class
2. All the class file with main class in the same folder with
manifest.txt file
File name=manifest.txt
Main-Class: main_class_name
NOte- if class file have package then [package_name.main_class_name]
Main-Class: com.democlass
No comments:
Post a Comment