IITDU Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

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

Go down

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

Post by BIT0122-Amit 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:
Code:
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.
Write:
Code:
@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.

Enjoy!
BIT0122-Amit
BIT0122-Amit
Founder
Founder

Course(s) :
  • BIT

Blood Group : O+
Posts : 4187
Points : 6605

https://iitdu.forumotion.com

Back to top Go down

Back to top

- Similar topics

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