0

Which command is used to create a package for java program so that we can install and run it in a computer ?

2nd Jan 2017, 1:26 PM
harjinder Kalsi
harjinder Kalsi - avatar
2 Respostas
+ 3
c:/java../> java cvfm packagename.jar manifest.txt *.class this command is the packaging command first is the name of .jar it will produce then manifest file a manifest file is a text file that contains declaration of classes libraries and version of jdk etc. and then name of classes then all are compressed and a class folder will classes manifest folders with manifest and extra folder of other things can be generated this is the .jar you can send this .jar to any computer if you want to automate the process you can use ide.
2nd Jan 2017, 1:42 PM
Sandeep Chatterjee
0
java command is used for execution not for creating packages !
2nd Jan 2017, 3:50 PM
harjinder Kalsi
harjinder Kalsi - avatar