[7u4] Review request for 7150516: [macosx] appletviewer shouldn't link against libX11 on the Mac

Anthony Petrov anthony.petrov at oracle.com
Fri Mar 2 07:42:06 PST 2012

On 3/2/2012 7:37 PM, Mike Swingler wrote:
>> Please review a fix for http://bugs.sun.com/view_bug.do?bug_id=7150516 at:
>> http://cr.openjdk.java.net/~anthony/x-22-appletviewerLibX11-7150516.0/
> I can't see the bug, but the change looks logical to me.

It usually takes a day for a new bug to show up on the web-site. I'm 
copying its Description below. Thanks for the review!

The description:

> I noticed a problem with the jdk 7u4 build for OS X - bin/appletviewer
> doesn't run. When I try to launch it, I get:
> dyld: Library not loaded: /usr/X11/lib/libX11.6.dylib
> Referenced from:
> /Library/Java/JavaVirtualMachines/jdk1.7.0_04/demo/jfx/Java2D/../../../bin/appletviewer
> Reason: Incompatible library version: appletviewer requires version
> 10.0.0 or later, but libX11.6.dylib provides version 9.0.0
> Trace/BPT trap
> bin/appletviewer worked fine in 7u4b228.
> Running the appletviewer class directly ('java sun.applet.appletviewer')
> does seem to work.
> I saw it mentioned in MACOSX_PORT-524 that the X11 toolkit is not the
> default in JDK7 on Mac. Perhaps the appletviewer executable is
> requesting the X11 toolkit?

best regards,

More information about the macosx-port-dev mailing list