Create Jar File in windows:
set class path for java
set path = C:\Program Files\Java\jdk1.6.0\bin
jar file creation command for all class files in current and sub directory
commad :- jar cvf jarFileName directory
examnple: jar cvf "myjar1.jar" .\in
jar file creation command for particular files
commad :- jar cvf jarFileName "fileName 1,fileName 2,fileName 3"
examnple: jar cvf "myjar1.jar" "sample.class,example.class"
To cheack jar file:
E:\NewFolder\jboss-4.0.3\server\default\deploy\timesheet.war\WEB-INF\classes>jar tvf myjar1.jar
set class path for java
set path = C:\Program Files\Java\jdk1.6.0\bin
jar file creation command for all class files in current and sub directory
commad :- jar cvf jarFileName directory
examnple: jar cvf "myjar1.jar" .\in
jar file creation command for particular files
commad :- jar cvf jarFileName "fileName 1,fileName 2,fileName 3"
examnple: jar cvf "myjar1.jar" "sample.class,example.class"
To cheack jar file:
E:\NewFolder\jboss-4.0.3\server\default\deploy\timesheet.war\WEB-INF\classes>jar tvf myjar1.jar
No comments:
Post a Comment