jEdit Community - Resources for users of the jEdit Text Editor
UnsatisfiedLinkError on Mac OS X with Apple's Java 1.6
Submitted by vocaro on Tuesday, 27 May, 2008 - 09:30

I'm running Mac OS X 10.5.2 and have installed the new 1.6.0_05 release of Apple's Java distribution. The new Java seems to be causing problems, however, because jEdit 4.3pre14 will not run with it installed. I get:

java.lang.UnsatisfiedLinkError: /usr/lib/java/libObjCJava.A.dylib:  
 at java.lang.ClassLoader$NativeLibrary.load(Native Method) 
 at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822) 
 at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1702) 
 at java.lang.Runtime.load0(Runtime.java:770) 
 at java.lang.System.load(System.java:1005) 
 at com.apple.cocoa.foundation.NSRuntime.loadLibrary(NSRuntime.java:127) 
 at com.apple.cocoa.foundation.NSRuntime.(NSRuntime.java:35) 
 at com.apple.cocoa.foundation.NSObject.(NSObject.java:27) 
 at macos.MacOSPlugin.start(Unknown Source) 
 at org.gjt.sp.jedit.PluginJAR.startPlugin(PluginJAR.java:1360)
 ...

There has been talk of this bug in other places, namely here:

http://lists.apple.com/archives/java-dev/2008/Apr/msg00280.html

and here:

http://lists.bluej.org/pipermail/bluej-discuss/2007-October/006482.html

My guess is that the problem can be worked around by preventing jEdit's Mac OS plugin from launching, but I haven't confirmed this.

Any other thoughts?

Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
jedit failure to startup on Mac OSX 10.5.5
by westmj on Tue, 07/10/2008 - 16:12
I found on my Intel Mac 10.5.5 with the latest JEdit (as of 06 Oct 2008) that removing the Mac jar does not work for me, but opening the "Get Info" and setting to 32 bit mode for the Jedit application does work.

Good luck.
You can probably work around
by elberry on Tue, 27/05/2008 - 18:53
You can probably work around this for the time being by downgrading Java for jEdit.

I'll try to figure out exact steps when I get home, but if you explore the jEdit.app directory, I think you have to replace the JavaStub..... link with a one to one in your 1.5 installation directory (usually /System/Libary/Frameworks/JavaVM.Frameworks/....[get lost here from memory])

That might be /System/Frameworks. Take a look around, otherwise I'll try to remember to look around tonight.


Learn from the past. Live in the present. Plan for the future.
11101000
Blog
 
Looks like someone had alread
by vocaro on Sat, 31/05/2008 - 00:59
Looks like someone had already filed a bug report on this.
 
Yes, jEdit will work with the
by vocaro on Fri, 30/05/2008 - 08:21
Yes, jEdit will work with the previous Java 1.5 installation on OS X 10.5.2. I've confirmed this on another machine that did not have the 1.6 upgrade.

However, there is a less invasive workaround to get jEdit running on Apple's Java 1.6. Simply remove the Mac OS plugin. First, open the jEdit.app package and navigate to Contents/Resources/Java/jars. Next, remove the MacOS.jar file. jEdit will now launch without crashing, allowing you to keep Java 1.6 installed.

This confirms that jEdit's Mac OS plugin is indeed triggering the problem. Perhaps it can be modified in some way to workaround the crash.
User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293