How to create and execute jar file using CMD(command prompt)
- Creating java file
Open note pad and write simple java program and save as with .java extension.
ex: java code:
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!!");
}
}
save the text file with extension as .java
- Creating class file
compiling java program through command prompt
- Create a manifest txt file with class names
ex:
- Command to convert java program to jar file
Comments
Post a Comment