jEdit 4.3pre16 on Mac OS X with Java 1.6

jEdit is currently my favorite text editor (nice, small and good support for lots of encodings).

Until today I have been using version 4.3pre15 on OS X (10.5) with Java 1.5 as default Java version. This configuration worked good, even if I had to copy the file /System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub to /Applications/, remove the soft link that was there before and rename the copied file to jedit in order to make it work.

Well, now I changed my default Java version to 1.6 and jEdit didn’t start up any more. By the way, if you want to change your default Java version use the Java Preferences application located under /Applications/Utilities/Java. Everything else is risky… 😉 I’ll write another blog entry about what was my first attempt and how it failed (here it is).

So I downloaded the current version of jEdit which is 4.3pre16 and installed it (delete previous version before…). As far as I read on jEdit’s webpage, this version should run with Java 1.5 but doesn’t work with Java 1.6. It contains a “Mac OS Plugin” for Java 1.5 support. The page says that one should remove this plugin when working with Java 1.6.

Great, so the only thing to do was to find out what this plugin is and where I’d find it. It’s a jEdit plugin located in /Applications/ and named MacOS.jar. After deleting this file, jEdit starts with Java 1.6 – great!

In order to delete this file, you can use Finder, go to the applications folder and right click (or ctrl-click if you don’t have a right mouse button) and choose “Show Package Contents” from the context menu. Then navigate down the file hierarchy Contents/Resources/Java/jars and delete MacOS.jar.

One Response to “jEdit 4.3pre16 on Mac OS X with Java 1.6”

  1. Thanks for posting this – I got caught out in the same way – you have saved me time and effort!