Thursday, March 26, 2015

Running Jar (Java Archive) file in Windows by double click


Peace be upon you and hi! Do you have *.jar (Java Archive) file? What is Java Archieve ? What we need? Ho to execute it?

Java Archive is a package file format typically used to aggregate many Java class files and associated metadata and resources (text, images, etc.) into one file to distribute application software or libraries on the Java platform.Source : Wikipedia

To execute Jar files, you need to install JRE (Java Runtime Environment) which can be download from Oracle website.

You can run Jar by command line directly from the directory
java -jar helloworld.jar

You also just can double click the Jar files, but sometimes when you double click on a jar file, and your Java application does not start because your .jar association has been hijacked. You can fix the problem with Jarfix. It will restore the .jar association with javaw.exe from your computer JRE. Download from here:

Dont worry, jarfix is freeware and small in size but reliable to solve the problem.

No comments:

Post a Comment