|
Making Jar Files Double
Clickable
In Windows 95/98/ME/NT/2000 you can set up the extension
*.jar so that when you double
click on a jar file in the disk explorer it will start
executing the main-class of the jar.
- Click Start | Disk Explorer |
View | Options | File Types | Executable Jar file |
edit.
- If there is no Executable Jar
file entry click new
to create one and fill in the Description of type to
jar - Java executable.
- Change the name of the entry from Executable
Jar file to something that will sort where
you expect it like jar - Java
executable.
- Change the content type to the proper MIME type.
- Set default extension for Content type to .jar.
- Click open | edit .
- If there is no open, Click new
and set the action to open.
- Set the application to perform to: "C:\program files\JavaSoft\JRE\1.4.0_01\bin\javaw.exe"
-jar "%1". You can browse or adjust
as necessary to account for where you put your javaw.exe
- Uncheck DDE.
- Click OK.
- Click new and set the
action to execute.
- Set the application to perform to: "C:\program files\JavaSoft\JRE\1.4.0_01\bin\javaw.exe"
-jar "%1". You can browse or adjust
as necessary to account for where you put your javaw.exe
- Uncheck DDE.
- Click OK.
- Click new and set the
action to edit.
- Set the application to perform to: "D:\program files\WinZip\winzip32.exe"
"%1" . You can browse or adjust as
necessary to account for where you put your Winzip
program.
- Uncheck DDE.
- Click OK.
- Click execute | set default.
- Click always show extension.
- click change icon.
Choose a nice icon.
- click close.
- Write a letter to Microsoft asking them to
automate this mess! :-)
|