Creating a jar File in Command Prompt
Start Command Prompt.
1.Navigate to the folder that holds your class files:
C:\>cd \mywork
2.Set path to include JDK’s bin. For example:
C:\mywork> path c:\Program Files\Java\jdk1.7.0_25\bin;%path%
3.Compile your class(es):
C:\mywork> javac *.java
4.Create a manifest file and your jar file:
C:\mywork> jar cvfe Craps.jar Craps *.class
NOTE : Here Craps means the class name of which include the main method .
No comments:
Post a Comment