May 31, 2009

Add "Open with jEdit" to Windows registry

Right-clicking on a file in Windows and selecting "Open with jEdit" is very easy to quickly edit files. jEdit can make the correct setting in our Windows registry during installation. But what if you've just unzipped the zip file and didn't do any installation? We can add the registry key ourselves. We must open Window's regedit. We add the following key:

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\Open with jEdit\command]
@=<path to javaw.exe> -Xms64M -Xmx192M -jar <path to jEdit directory>\jedit.jar -reuseview "%1"

So we need to add the keys shell, Open with jEdit and command. The default value for command is the path to javaw.exe and jedit.jar.