jEdit won’t start after OS X Java update

I noticed that jEdit would no longer start on my MacBook Pro with OS X 10.5.5.  I’d try to run jEdit via Quicksilver as usual, but it wouldn’t open.  Double-clicking on the jEdit application icon was just as useless.  Nothing happened.  I checked for anything that could be blocking it and restarted my laptop with no change.  I upgraded to the latest version of jEdit but it still wouldn’t run.

It turns out that the latest Java update from Apple managed to break jEdit’s launch.  After a decent amount of Googling, I ran into the solution.  Basically, it involves replacing a symlink with its target.

rm /Applications/jEdit.app/Contents/MacOS/jedit
cp /System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub /Applications/jEdit.app/Contents/MacOS/jedit<br />

And it even came with an explanation:

The basic problem has to do with symlinks to the latest java application stub. It used to be that you could symlink to the stub, so that you could use whatever was installed on the user’s system. Now it seems that there are some problems with the launcher looking for files in the wrong directory, and using the actual stub instead of a symlink is required.

I decided to copy it here just to improve the odds of finding a solution for the next person.  Thanks to those folks who discovered & reported the solution.

7 Responses to “jEdit won’t start after OS X Java update”

  1. Harold Says:

    Thx for fix you save my developer life ! I love Jedit.

  2. monty hall Says:

    Hell ya - I was this close to downloading textmate. Cheers!

  3. earth Says:

    Thanks much, I had resorted to starting it from the command line… java -jar /path/to/jedit.jar

    But that results in ugliness in the Dock and it was Not Good Enough for my partner. Your solutions came up immediately through google and was a trivial-ish fix. I’m surprised my other java apps still run properly.

  4. Rayman Brint Says:

    Thank you for mirroring this solution. It fixed my problem.
    :) Cheers

  5. edzob Says:

    Thank you for this .. this saved my jedit. because it is a great editor.

  6. Luc Van Bogaert Says:

    Thanks for posting this year. jEdit now works again. Like another poster, I was already thinking of getting another text editor, but it would be damn hard to replace jedit.

  7. Joe Says:

    Saved my day - thx

Leave a Reply