Posts

Showing posts from September, 2020

.JAVA to .JAR Conversion

Image
 .JAVA to .JAR Conversion Steps for making jar file from java file 1) Create java project 2) Create package 3) Create java file in package and write the code for which you want to create jar file 4) Right click on project 5) Click on " Export " 6)Click on " Java " and select " Runnable jar file " 7)Click on " next " button. 8)In launch configuration select java file for which you want to create jar file 9)In Export destination put the path where you want to save the jar file. 10)Click on finish button.   Now your .jar file is ready and you can run it.   Steps for run the jar file   1)open cmd from the folder where the .jar file is located. 2)By using command      " java -jar jarfilename.java " you can run your jar file. - Hina Murdhani