Re-Enabling the Opening of Executable jar files Directly(Windows)

Go down

Re-Enabling the Opening of Executable jar files Directly(Windows)

Post by BIT0122-Amit on Fri Jan 08, 2010 7:21 am

There are some of you who installed nokia pc suite, or some other softwares, and all the jar files are now associated with those softwares.
now when you make your executable jar file and then double click on it, it tries to.. well.. do unncessary things like trying to install the jar in your nokia mobile.

Now, if you want to open the file by double clicking, here is what you need to do.

Make a bat file which will execute:
java -jar  "filename".jar
Do not worry, I am going to show you how to make that bat file.
now, go to your JRE/JDK directory, where the java exes are located.
make a new text file, and then open it.
@java -jar %1
and save it using the name "jaropener.bat".
now, right click on the jar file, and click on open with.
select the jaropener.bat in the predefined location, and then use it to open the executable jar file you just made.


Adminship / Moderatorship is not about power, it is about Responsibility.

|About me|My Blog|

Course(s) :
  • BIT

Blood Group : O+
Posts : 4187
Points : 6605

View user profile

Back to top Go down

Back to top

Permissions in this forum:
You cannot reply to topics in this forum