Re: problems with freetype.dll, jdk 8 and windows

2016-03-07 Thread Hendrik Schreiber

> On Mar 7, 2016, at 17:50, Phil Race  wrote:
> 
> On 03/07/2016 08:11 AM, Hendrik Schreiber wrote:
>> - System Setup: freetype is listed as a requirement for Linux and Solaris. 
>> But not for Windows.
> 
> I don't think that is completely accurate.

What I meant to point out is, that the README document has a section called 
“System Setup”. It seems to specify needed requisites for different platforms, 
namely Linux, Solaris, Windows and Mac OS X.

Under none of the “Windows” headings, freetype is listed. But clearly, to build 
the JDK for Windows, you need freetype installed or at least the sources 
accessible.

But that’s beside the point. I’m sure one can guess and assume one’s way 
through the whole thing just fine.

I really just wanted to list some things that would have made it easier *for 
me* to get going, assuming that it would also make it easier for other people. 
IMHO, a little verbosity does not hurt in such a document.

Please don’t take my email as an annoyance. I just wanted to point some things 
out that most people working with the JDK for years would probably never 
notice, simply because they have no need to read the README file in the first 
place.

Cheers!

-hendrik

Re: problems with freetype.dll, jdk 8 and windows

2016-03-07 Thread Phil Race

On 03/07/2016 08:11 AM, Hendrik Schreiber wrote:

- System Setup: freetype is listed as a requirement for Linux and Solaris. But 
not for Windows.


I don't think that is completely accurate. There is  some additional mention
in Unix sections regarding what to install to make your life easier,
but the README has (since JDK7) listed freetype as required without 
limiting it to specific platforms.


i.e. In JDK9 the "configure" section says :-


*|--with-freetype=|*/path/
select the freetype files to use.

Expecting the freetype libraries under |lib/| and the headers under 
|include/|.


Version 2.3 or newer of FreeType is required. On Unix systems required 
files can be available as part of your distribution .


---


-phil.



Re: problems with freetype.dll, jdk 8 and windows

2016-03-07 Thread Hendrik Schreiber
>> 
>> BTW—Something that puzzles me but probably has a straight forward 
>> explanation: Why is there no freetype.dll in the pre-built JDKs (either 8 or 
>> 9)? Shouldn’t that be in there somewhere? I was thinking that would be a 
>> great source for a correctly built binary lib..
> 
> If by "pre-built" you mean the Oracle JDKs, they don't use/require freetype - 
> only OpenJDK does.

Ah! Thanks, David, for pointing this out. I was not aware of it.

-hendrik



Re: problems with freetype.dll, jdk 8 and windows

2016-03-06 Thread David Holmes

On 7/03/2016 6:59 AM, 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...?

BTW—Something that puzzles me but probably has a straight forward explanation: 
Why is there no freetype.dll in the pre-built JDKs (either 8 or 9)? Shouldn’t 
that be in there somewhere? I was thinking that would be a great source for a 
correctly built binary lib..


If by "pre-built" you mean the Oracle JDKs, they don't use/require 
freetype - only OpenJDK does.


David
-


Thanks!

-hendrik



Re: problems with freetype.dll, jdk 8 and windows

2016-03-06 Thread Magnus Ihse Bursie

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


problems with freetype.dll, jdk 8 and windows

2016-03-06 Thread Hendrik Schreiber
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...?

BTW—Something that puzzles me but probably has a straight forward explanation: 
Why is there no freetype.dll in the pre-built JDKs (either 8 or 9)? Shouldn’t 
that be in there somewhere? I was thinking that would be a great source for a 
correctly built binary lib..

Thanks!

-hendrik