java - How to create JAR file for code using apache commons library through cmd -


my code using following library:

import org.apache.commons.net.ftp.ftp;  import org.apache.commons.net.ftp.ftpclient;  import org.apache.commons.net.ftp.ftpreply; 

it getting compiled , executed using commands:

javac -classpath .;commons-net-3.1.jar corpchoice.java java -classpath .;commons-net-3.1.jar corpchoice 

but unable create executable jar file code through cmd. using following command jar file creation

echo class-path:commons-net-3.1.jar >manifest.txt   jar cvfm corpchoice.jar manifest.txt *.class 

please help.


Comments