Running jEdit on Mac with Java 6 SE

Apple recently released Java 6 SE through a Java update. With the release of Java 6 Mac users can now enjoy better OS X integration besides the many other improvements in Java 6.
Using Java 6 as the default JVM has implications with a standard jEdit installation on Mac. But the solution is simple...
Being a jEdit user I was eager to try out the new JVM version to see if there were any general improvements.
Since Mac users has gone long without proper OS integration, one jEdit developer (Kris Kopicki) decided to fix this with a Mac OS X plugin that included many small improvements.
With the new update Apple has completely removed the cocoa API (packages in com.apple.cocoa). The result: jEdit will fail to start with Java 6 SE.
jEdit will simply "bounce" once and then quit. This is caused by a fatal exception during startup.
The fix is simple: Remove the Mac OS X plugin.
With the improved cocoa/mac support many of the features in the plugin are unncessesary. Key-mappings are improved to use the CMD-buttons in all textareas and the menubar is now moved to the actual Mac menubar.
How to remove the plugin:
- Right click/CTRL+click the jEdit application icon
- Choose "Show Package Contents"
- Go to the Contents/Java/jars folder
- Delete the MacOS.jar file (you may need to authenticate to do this)

Launching jEdit with Java 6 SE should now be possible. Alternatively to setting Java 6 SE as your standard JVM you can set the Contents/Info.plist file property: "Root/Java/JVMVersion" to "1.6+" instead of "1.5+". Either way should work.

October 1st, 2008 - 05:04
I was going crazy trying to find out why jedit suddenly was going crazy.
Much appreciated.
April 16th, 2009 - 09:33
This didn't work for me. I continue facing the same issue—"jEdit will simply "bounce" once and then quit.".
Any further suggestions?
April 16th, 2009 - 09:38
Rahul, those are the most common issues. If you want to see the exact problem, try quitting jEdit and opening a Terminal (under Applications, Utilities) and type:
/Applications/jEdit.app/Contents/MacOS/jedit
This should launch jEdit through the terminal and output some debugging info. Could you paste it into an e-mail to me? This should tell us, what is going wrong.
Best regards
Seph
April 16th, 2009 - 10:23
In case Jedit still fails to launch despite Seph's suggestions, make sure that "Run in 32-bit mode" is unchecked in the "Get Info" option from the context menu.