Swing/AWT apps don't work inside a sandbox

Marco Dinacci marco.dinacci at gmail.com
Sun May 20 01:47:27 PDT 2012


Yes I've my own build and I also have X11 installed. Without changing
the Makefiles it doesn't pull it in and look for it using an absolute
path even if you specify ALT_FREETYPE_HEADERS_PATH and
ALT_FREETYPE_LIBS_PATH to point to your libfreetype build.

I've found quicker for the moment to use install_name_tool as a
workaround to change the path of libreetype inside
libfontmanager.dylib from /usr/X11/libfreetype.6.dylib to
@rpath/libfreetype.6.dylib after having copied in the lib manually.


Marco

On 19 May 2012 17:07, David DeHaven <david.dehaven at oracle.com> wrote:
>
>> because freetype is still not included for osx, any Java app that
>> makes use of AWT/Swing won't work inside a sandbox as sandboxd will
>> refuse loading the freetype system library:
>
> Are you using your own build of OpenJDK? If you have X11 installed it will pull in libfreetype when you build. The solution is to not build with X11, the process for which escapes me at the moment…
>
> -DrD-
>


More information about the macosx-port-dev mailing list