steps to be followed:
1. Start Command Prompt.
2. Navigate to the folder that holds your class files:
like this: C:\>cd \mywork
3. Compile your java files to get java class(es):
like this: C:\mywork> javac *.java
4. Create a manifest file:
like this: C:\mywork> echo Main-Class: DanceStudio >manifest.txt
5. Create a jar file:
like this: C:\mywork> jar cvfm DanceStudio.jar manifest.txt *.class
6. Test your jar:
like this: C:\mywork> DanceStudio.jar
Important Note:
Here DanceStudio represents the Main Class file name...
1. Start Command Prompt.
2. Navigate to the folder that holds your class files:
like this: C:\>cd \mywork
3. Compile your java files to get java class(es):
like this: C:\mywork> javac *.java
4. Create a manifest file:
like this: C:\mywork> echo Main-Class: DanceStudio >manifest.txt
5. Create a jar file:
like this: C:\mywork> jar cvfm DanceStudio.jar manifest.txt *.class
6. Test your jar:
like this: C:\mywork> DanceStudio.jar
Important Note:
Here DanceStudio represents the Main Class file name...
No comments:
Post a Comment