Hi Sean, looking at your error.log I think you have a different problem:
Caused by: java.lang.UnsatisfiedLinkError: C:\Users\zhouyx\Desktop\j2sdk-image\j re\bin\freetype.dll: Can't find dependent libraries This means that freetype.dll was found, but another library which freetype.dll is dependent on could not be located on the new system. You can check with a tool like for example "DependencyWalker" (http://www.dependencywalker.com/) on which other libraries freetype.dll is dependent on. As far as I can see on my system, the dependencies are not exceptional: t:\sapjvm_dev\d046063\j2sdk-image\jre\bin\FREETYPE.DLL |-->c:\windows\system32\KERNEL32.DLL |-->c:\windows\system32\NTDLL.DLL Hope this helps, Volker On Tue, Nov 8, 2011 at 7:38 AM, Sean Chou <zho...@linux.vnet.ibm.com> wrote: > Hi Phil, > The situation I found is strange: the JDK we build works well on windows > which > have the building environment. Eg. machine1 and machine2 both can build > windows > openjdk. If I copy a jdk built on machine1 to machine2, it works well. If > machine3 > doesn't have the build environment, it reports error about freetype.dll. > I haven't investigate the problem, however the freetype.dll is there > with awt.dll. So I guessed it was something related to freetype.dll > installation. > The attachment is the error information. > On Tue, Nov 8, 2011 at 1:19 AM, Phil Race <philip.r...@oracle.com> wrote: >> >> Sean, >> >> I am not sure what you mean by "installed" - installed into >> \windows\system32 >> or installed in the JRE bin directory? But the latter is the only way its >> supposed to >> work, and the build should take the copy of freetype.dll you provide to >> it, and >> copy it to that location. At runtime, freetype is treated like any other >> JRE provided >> DLL, such as awt.dll, net.dll, etc. The difference is only at build time, >> since the openjdk >> sources don't contain the freetype sources. You need to build it >> separately. >> >> -phil. >> >> On 11/6/2011 7:28 PM, Sean Chou wrote: >>> >>> Hi Volker, >>> >>> I would like to know have you tried to run gui application with the >>> build on another >>> windows machine which doesn't have freetype.dll installed ? I had built >>> jdk on >>> windows but found that it can run gui applications in the machine built >>> it, but cann't >>> run gui application in machines without freetype installed. >>> >>> >>> On Sat, Oct 29, 2011 at 2:19 AM, Volker Simonis <volker.simo...@gmail.com >>> <mailto:volker.simo...@gmail.com>> wrote: >>> >>> Hi, >>> >>> I've put together a short description on how to build both, a 64- and >>> a 32-bit version of OpenJDK 8 on a plain, vanilla WindowsXP 64-bit >>> operating system using only free (as in free beer) tools: >>> >>> >>> http://weblogs.java.net/blog/simonis/archive/2011/10/28/yaojowbi-yet-another-openjdk-windows-build-instruction >>> >>> It seems as if it is not that hard anymore nowadays:) >>> >>> Regards, >>> Volker >>> >>> >>> >>> >>> -- >>> Best Regards, >>> Sean Chou >>> >> > > > > -- > Best Regards, > Sean Chou > >