63 <li><a href="#importjdk">Optional Import JDK</a> </li> |
63 <li><a href="#importjdk">Optional Import JDK</a> </li> |
64 <li><a href="#ant">Ant</a> </li> |
64 <li><a href="#ant">Ant</a> </li> |
65 <li><a href="#cacerts">Certificate Authority File (cacert)</a> </li> |
65 <li><a href="#cacerts">Certificate Authority File (cacert)</a> </li> |
66 <li><a href="#compilers">Compilers</a> |
66 <li><a href="#compilers">Compilers</a> |
67 <ul> |
67 <ul> |
68 <li><a href="#msvc">Microsoft Visual Studio</a> </li> |
68 <li><a href="#msvc32">Microsoft Visual Studio Professional/Express for 32 bit</a> </li> |
69 <li><a href="#mssdk">Microsoft Platform SDK</a> </li> |
69 <li><a href="#msvc64">Microsoft Visual Studio Professional for 64 bit</a> </li> |
|
70 <li><a href="#mssdk64">Microsoft Windows SDK for 64 bit</a> </li> |
70 <li><a href="#gcc">Linux gcc/binutils</a> </li> |
71 <li><a href="#gcc">Linux gcc/binutils</a> </li> |
71 <li><a href="#studio">Sun Studio</a> </li> |
72 <li><a href="#studio">Sun Studio</a> </li> |
72 </ul> |
73 </ul> |
73 </li> |
74 </li> |
74 <li><a href="#zip">Zip and Unzip</a> </li> |
75 <li><a href="#zip">Zip and Unzip</a> </li> |
787 <a href="#importjdk">Optional Import JDK</a>, set |
788 <a href="#importjdk">Optional Import JDK</a>, set |
788 <tt><a href="#ALT_JDK_IMPORT_PATH">ALT_JDK_IMPORT_PATH</a></tt>. |
789 <tt><a href="#ALT_JDK_IMPORT_PATH">ALT_JDK_IMPORT_PATH</a></tt>. |
789 </li> |
790 </li> |
790 <li> |
791 <li> |
791 Install the |
792 Install the |
792 <a href="#msvc">Microsoft Visual Studio Compilers</a>). |
793 <a href="#msvc32">Microsoft Visual Studio Compilers</a>). |
793 </li> |
794 </li> |
794 <li> |
795 <li> |
795 Setup all environment variables for compilers |
796 Setup all environment variables for compilers |
796 (see <a href="#msvc">compilers</a>). |
797 (see <a href="#msvc32">compilers</a>). |
797 </li> |
798 </li> |
798 <li> |
799 <li> |
799 Install |
800 Install |
800 <a href="#dxsdk">Microsoft DirectX SDK</a>. |
801 <a href="#dxsdk">Microsoft DirectX SDK</a>. |
801 </li> |
802 </li> |
956 <a href="http://developers.sun.com/sunstudio/downloads/express.jsp" target="_blank"> |
957 <a href="http://developers.sun.com/sunstudio/downloads/express.jsp" target="_blank"> |
957 Sun Studio Express Download site</a> |
958 Sun Studio Express Download site</a> |
958 are also an option, although these compilers have not |
959 are also an option, although these compilers have not |
959 been extensively used yet. |
960 been extensively used yet. |
960 </blockquote> |
961 </blockquote> |
961 <strong><a name="msvc">Windows i586: Microsoft Visual Studio Compilers</a></strong> |
962 <strong><a name="msvc32">Windows i586: Microsoft Visual Studio 2010 Compilers</a></strong> |
962 <blockquote> |
963 <blockquote> |
963 <p> |
964 <p> |
964 <b>BEGIN WARNING</b>: At this time (Spring/Summer 2010) JDK 7 is starting a transition to |
965 <b>BEGIN WARNING</b>: At this time (Spring/Summer 2010) JDK 7 is starting a transition to |
965 use the newest VS2010 Microsoft compilers. These build instructions are updated |
966 use the newest VS2010 Microsoft compilers. These build instructions are updated |
966 to show where we are going. We have a QA process to go through before |
967 to show where we are going. We have a QA process to go through before |
969 including non-open portions. |
970 including non-open portions. |
970 So for now you should be able to build with either VS2003 or VS2010. |
971 So for now you should be able to build with either VS2003 or VS2010. |
971 We do not guarantee that VS2008 will work, although there is sufficient |
972 We do not guarantee that VS2008 will work, although there is sufficient |
972 makefile support to make at least basic JDK builds plausible. |
973 makefile support to make at least basic JDK builds plausible. |
973 Visual Studio 2010 Express compilers are now able to build all the |
974 Visual Studio 2010 Express compilers are now able to build all the |
974 open source repositories, but this is 32 bit only, since |
975 open source repositories, but this is 32 bit only. To build 64 bit |
975 we have not yet seen the 7.1 Windows SDK with the 64 bit |
976 Windows binaries use the the 7.1 Windows SDK.<b>END WARNING.</b> |
976 compilers. <b>END WARNING.</b> |
|
977 <p> |
977 <p> |
978 The 32-bit OpenJDK Windows build |
978 The 32-bit OpenJDK Windows build |
979 requires |
979 requires |
980 Microsoft Visual Studio C++ 2010 (VS2010) Professional |
980 Microsoft Visual Studio C++ 2010 (VS2010) Professional |
981 Edition compiler. |
981 Edition or Express compiler. |
982 The compiler and other tools are expected to reside |
982 The compiler and other tools are expected to reside |
983 in the location defined by the variable |
983 in the location defined by the variable |
984 <tt>VS100COMNTOOLS</tt> which |
984 <tt>VS100COMNTOOLS</tt> which |
985 is set by the Microsoft Visual Studio installer. |
985 is set by the Microsoft Visual Studio installer. |
986 <p> |
986 <p> |
999 <b>WARNING:</b> Make sure you check out the |
999 <b>WARNING:</b> Make sure you check out the |
1000 <a href="#cygwin">CYGWIN link.exe WARNING</a>. |
1000 <a href="#cygwin">CYGWIN link.exe WARNING</a>. |
1001 The path <tt>/usr/bin</tt> must be after the path to the |
1001 The path <tt>/usr/bin</tt> must be after the path to the |
1002 Visual Studio product. |
1002 Visual Studio product. |
1003 </blockquote> |
1003 </blockquote> |
1004 <strong><a name="mssdk">Windows x64: Microsoft Visual Studio Compilers</a></strong> |
1004 <strong><a name="msvc64">Windows x64: Microsoft Visual Studio 2010 Professional Compiler</a></strong> |
1005 <blockquote> |
1005 <blockquote> |
1006 On <b>X64</b>, the set up is much the same in VS2010 |
1006 For <b>X64</b>, builds, when using the VS2010 Professional |
|
1007 compiler, the 64 bit build set up is much the same as 32 bit |
1007 except that you run <tt>amd64\VCVARS64.BAT</tt> |
1008 except that you run <tt>amd64\VCVARS64.BAT</tt> |
1008 to set the compiler environment variables. |
1009 to set the compiler environment variables. |
1009 Previously 64 builds had used the 64 bit compiler in |
1010 Previously 64 bit builds had used the 64 bit compiler in |
1010 an unbundled Windows SDK but this is no longer necessary. |
1011 an unbundled Windows SDK but this is no longer necessary if |
|
1012 you have VS2010 Professional. |
1011 </blockquote> |
1013 </blockquote> |
|
1014 <strong><a name="mssdk64">Windows x64: Microsoft Windows 7.1 SDK 64 bit compilers.</a></strong> |
|
1015 For a free alternative for 64 bit builds, use the 7.1 SDK. |
|
1016 Microsoft say that to set up your paths for this run |
|
1017 <pre> |
|
1018 c:\Program Files\Microsoft SDKs\Windows\v7.1\bin\setenv.cmd /x64. |
|
1019 </pre> |
|
1020 What was tested is just directly setting up LIB, INCLUDE, |
|
1021 PATH and based on the installation directories using the |
|
1022 DOS short name appropriate for the system, (you will |
|
1023 need to set them for yours, not just blindly copy this) eg : |
|
1024 <pre> |
|
1025 set VSINSTALLDIR=c:\PROGRA~2\MICROS~1.0 |
|
1026 set WindowsSdkDir=c:\PROGRA~1\MICROS~1\Windows\v7.1 |
|
1027 set PATH=%VSINSTALLDIR%\vc\bin\amd64;%VSINSTALLDIR%\Common7\IDE;%WindowsSdkDir%\bin;%PATH% |
|
1028 set INCLUDE=%VSINSTALLDIR%\vc\include;%WindowsSdkDir%\include |
|
1029 set LIB=%VSINSTALLDIR%\vc\lib\amd64;%WindowsSdkDir%\lib\x64 |
|
1030 </pre> |
1012 </blockquote> |
1031 </blockquote> |
1013 <!-- ------------------------------------------------------ --> |
1032 <!-- ------------------------------------------------------ --> |
1014 <h4><a name="zip">Zip and Unzip</a></h4> |
1033 <h4><a name="zip">Zip and Unzip</a></h4> |
1015 <blockquote> |
1034 <blockquote> |
1016 Version 2.2 (November 3rd 1997) or newer of the zip utility |
1035 Version 2.2 (November 3rd 1997) or newer of the zip utility |