problems with freetype.dll, jdk 8 and windows

Magnus Ihse Bursie magnus.ihse.bursie at oracle.com
Sun Mar 6 21:02:28 UTC 2016


On 2016-03-06 21:59, Hendrik Schreiber wrote:
> Hey there,
>
> I’m trying to build a 32 bit JDK8u with Windows. And hoorray! it’s building just fine.
> But when running some software I run into:
>
> java.lang.UnsatisfiedLinkError: C:\…\jre\bin\freetype.dll: %1 is not a valid Win32 application
>
> Apparently, I am not the first one with this problem. http://mail.openjdk.java.net/pipermail/build-dev/2015-January/014091.html seems to have faced the same issue and was told:
>
>
> “Freetype on Windows has long been a frustrating source of problems.
>
> In JDK9 there is a new configure option, --with-freetype-src, which
> helps out a lot with the problematic freetype on Windows. It just
> requires you to download the freetype source code and it will
> automatically compile a correct freetype library for use by OpenJDK.
>
> AFAIK this patch has not been backported to JDK8, however. But if you
> can switch to JDK9 I highly recommend  it. An alternative solution might
> be to download JDK9 just to use this feature, and then point to the
> newly built freetype library using configure in JDK8.”
>
>
> I can definitely confirm that first statement…
>
> Is there any other, easy recommended way how to deal with this on for 8u. I’d like to avoid having to deal at all with JDK9 at this point. Perhaps someone has a correctly built 32 bit dll lying around...?

You can just clone jdk9 and use the --with-freetype-src to have the 
configure script for jdk9  build freetype for you. You can then forget 
about jdk9 and point your jdk8 configure to the newly build freetype.

/Magnus



More information about the build-dev mailing list