.JAVA to .JAR Conversion

 .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



Comments

Post a Comment

Popular posts from this blog

PLAYWRIGHT : Automation Tool

MABL : Codeless Automation Tool

CYPRESS AUTOMATION TOOL

Difference of Opinion on Node vs Go

BlazeMeter : How to write Jmeter script without prior knowledge of Jmeter

Why node-red is use for embedded programming ?

API testing using postman

Loadium tool For jmeter script from POSTMAN

Software Testing Life Cycle(STLC)