I use jEdit to do most of my coding. I had some issues using the “Open with…” feature on Vista Ultimate. For some reason the right-click menu would not launch jEdit 4.3pre12 on Java 1.6.0_03.

I got it working by editing the registry and editing the bat file. For some reason the path to javaw.exe was incorrect. If you fix these paths, everything works as expected.

Fixing the registry

  • Open the registry editor using “regedt32” in the Run dialog (click “the Windows key”-R)
  • Go to: Computer\HKEY_CLASSES_ROOT\*\shell\Open with jEdit\Command
  • Change the key Data: “C:\Program Files (x86)\Java\jre1.6.0_03\bin\javaw.exe” -Xms64M -Xmx192M -jar “C:\Program Files (x86)\jEdit\jedit.jar” -reuseview “%1”
  • Click “OK”

Fixing the bat file

  • Open Windows Explorer and go to: C:\Program Files (x86)\jEdit
  • Edit the jEdit.bat file
  • Modify this line: start “jEdit startup” “C:\Program Files (x86)\Java\jre1.6.0_03\bin\javaw.exe” -Xms64M -Xmx192M -jar “C:\Program Files (x86)\jEdit\jedit.jar” -reuseview %*