Openjdk8 Build of Windows

Source: Internet
Author: User

<title>Openjdk8 Build of Windows</title> My environment: XP x32 Chinese Professional Edition. Vs2010 en Professional cygwin2.867 (32bit) OPENJDK8 is much better compiled than OPENJDK7. First, it does not depend on the environment variable. It's a way to change the parameters.
opejdk:http://download.java.net/openjdk/jdk8/
Freetype:http://www.freetype.org/jdk:jdk-7u7-windows-i586.exe or x64
Openjdk:openjdk-8-src-b132-03_mar_2014.zipfreetype:ft255.zip
Cygwin installation Press the option on the document, but it seems that there is a cmp.exe, so we need to install diffutils this package, as if we need to copy C:\WINDOWS\system32\cmd.exe to Cygwin\bin


Open cmd CD OPENJDK-8-SRC-B132-03_MAR_2014\OPENJDK
Call "C:/Program Files/microsoft Visual Studio 10.0/common7/tools/vsvars32.bat"
SET Path=c:/program files/java/jdk1.7.0_07; C:/Program Files/microsoft Visual Studio 10.0/vc/bin; c:/cygwin/bin;%path%;:: note Here the order of this PATH do not arbitrarily change, to ensure that the Vc/bin directory before Cygwin, because Vc/bin has a link.exe Cygwin also have, we need the VC Lin K.exe, Cygwin to use Find.exe in the compilation before%PATH%, we need to make sure we're using find in Cygwin.
Bash./configure--with-freetype=/cygdrive/d/myjdk/openjdk-8-src-b132-03_mar_2014/freetype--with-target-bits=32- -with-debug-level=fastdebug--with-num-cores=8:: Here's the option in addition to the first other is optional then it can be configured and so on if you see the following similar content on the success of build performance Su Mmary:
* Cores to Use:7
* Memory limit:8105 MB
* CCache Status:not available for your system

Warning:the result of this configuration have overridden an older
Configuration. You *should* run "make clean" to make sure get a
Proper build. Failure to does so might the result in strange build problems.
Bashmake Conf=windows-x86-normal-server-fastdebug 2>&1 | Tee Make.log
:: Wait a long time my i7 8g machine will probably need 10-20 minutes if you see something like this, you're done.
Warning:the result of this configuration have overridden an older
Configuration. You *should* run "make clean" to make sure get a
Proper build. Failure to does so might the result in strange build problems.

Generated results in: Openjdk-8-src-b132-03_mar_2014\openjdk\build

All my environment Variables in compilation: Allusersprofile=c:\documents and Settings\All Users
Appdata=c:\documents and Settings\administrator\application Data
Clientname=console
Commonprogramfiles=c:\program Files\Common Files
computername=xxxpc
Comspec=c:\windows\system32\cmd.exe
Devenvdir=c:\program Files\Microsoft Visual Studio 10.0\common7\ide\
Dxsdk_dir=c:\program Files\Microsoft DirectX 9.0 SDK (Summer 2004) \
Fp_no_host_check=no
framework35version=v3.5
Frameworkdir=c:\windows\microsoft.net\framework\
Frameworkdir32=c:\windows\microsoft.net\framework\
frameworkversion=v4.0.30319
frameworkversion32=v4.0.30319
Homedrive=c:
Homepath=\documents and Settings\Administrator
Include=c:\program Files\Microsoft Visual Studio 10.0\vc\include; C:\Program Files\Microsoft Visual Studio 10.0\vc\atlmfc\include; C:\Program Files\Microsoft Sdks\windows\v7.0a\include;
Lib=c:\program Files\Microsoft Visual Studio 10.0\vc\lib; C:\Program Files\Microsoft Visual Studio 10.0\vc\atlmfc\lib; C:\Program Files\Microsoft Sdks\windows\v7.0a\lib;
libpath=c:\windows\microsoft.net\framework\v4.0.30319; C:\WINDOWS\Microsoft.NET\Framework\v3.5; C:\Program Files\Microsoft Visual Studio 10.0\vc\lib; C:\Program Files\Microsoft Visual Studio 10.0\vc\atlmfc\lib;
logonserver=\\xxxpc
Number_of_processors=8
Os=windows_nt
Path=c:/program files/java/jdk1.7.0_07; C:/Program Files/microsoft Visual Studio 10.0/vc/bin; C:/cygwin/bin; C:\Program Files\Microsoft Visual Studio 10.0\VSTSDB\Deploy; C:\Program Files\Microsoft Visual Studio 10.0\common7\ide\; C:\Program Files\Microsoft Visual Studio 10.0\vc\bin; C:\Program Files\Microsoft Visual Studio 10.0\common7\tools; C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319; C:\WINDOWS\Microsoft.NET\Framework\v3.5; C:\Program Files\Microsoft Visual Studio 10.0\vc\vcpackages; C:\Program files\html help Workshop; C:\Program Files\Microsoft Visual Studio 10.0\team Tools\Performance Tools; C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools; C:\Program Files\Microsoft Sdks\windows\v7.0a\bin; C:\Python27\; C:\WINDOWS\system32; C:\WINDOWS; C:\windows\system32\wbem;c:\program Files\Microsoft SQL Server\100\tools\binn\;c:\program Files\Microsoft SQL Server \100\dts\binn\; C:\Program Files\tortoisesvn\bin; C:\Program Files\Common Files\adobe\agl; C:\Program files\010 Editor; C:\Documentsand Settings\Administrator\Local Settings\Application Data\kingsoft\wps Office\9.1.0.4953\office6; C:\Program FILES\IDM Computer solutions\ultraedit\; C:\Program FILES\IDM Computer solutions\ultracompare\; C:\Program FILES\IDM Computer solutions\ultrafinder\;
pathext=.com;. EXE;. BAT;. CMD;. VBS;. VBE;. JS;. JSE;. WSF;. WSH
Processor_architecture=x86
Processor_identifier=x86 Family 6 Model stepping 3, Genuineintel
Processor_level=6
Processor_revision=3c03
Programfiles=c:\program Files
prompt= $P $g
Sessionname=console
Systemdrive=c:
Systemroot=c:\windows
Temp=c:\docume~1\admini~1\locals~1\temp
Tmp=c:\docume~1\admini~1\locals~1\temp
userdomain=xxxpc
Username=administrator
Userprofile=c:\documents and Settings\Administrator
Vcinstalldir=c:\program Files\Microsoft Visual Studio 10.0\vc\
Vs100comntools=c:\program Files\Microsoft Visual Studio 10.0\common7\tools\
Vsinstalldir=c:\program Files\Microsoft Visual Studio 10.0\
Windir=c:\windows
Windowssdkdir=c:\program Files\Microsoft Sdks\windows\v7.0a\


Generate VS2010 Project:
CMD \openjdk-8-src-b132-03_mar_2014\openjdk\hotspot\make\windows
Set JAVA_HOME=D:\MYJDK\OPENJDK-8-SRC-B132-03_MAR_2014\OPENJDK\BUILD\WINDOWS-X86-NORMAL-SERVER-FASTDEBUG\JDK
Call "C:\Program Files\Microsoft Visual Studio 10.0\common7\tools\vsvars32.bat"
Set Path=%java_home%\bin; C:\Program Files\Microsoft Visual Studio 10.0\vc\bin; c:\cygwin\bin;%path%
Set Hotspotmkshome=c:\cygwin\bin
Set msc_ver=1600
Create%java_home%

Wait a minute. Something like the following indicates success: Writing. vcxproj file:d:\myjdk\openjdk-8-src-b132-03_mar_2014\openjdk\hotsp
Ot\build\vs-i486\jvm.vcxproj
Done writing. vcxproj file.
Writing. Vcxproj.filters File:d:\myjdk\openjdk-8-src-b132-03_mar_2014\openj
Dk\hotspot\build\vs-i486\jvm.vcxproj.filters done.
Writing. Vcxproj.user file:d:\myjdk\openjdk-8-src-b132-03_mar_2014\openjdk\
Hotspot\build\vs-i486\jvm.vcxproj.user done.
Build in: openjdk-8-src-b132-03_mar_2014\openjdk\hotspot\build\vs-i486 open jvm.vcxproj with vs2010 compile just fine.


NOTE:OPENJDK8 is much better compiled than OPENJDK7. Openjdk7 needs to set a lot of environment variables, and 8 is changed to./configure Plus parameters

JDK8 My environment:
Link: Http://pan.baidu.com/s/1mgh2nrE Password: FLRV




From for notes (Wiz)

Openjdk8 Build of Windows

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.