Windows 10 Enterprise(1607) 编写翻译 Openjdk 9

至于Windows 的设置光盘版本众五种,非常多个人不知情选取怎么样。

准确,你没看错,是Pro的LTSC版本。

— Windows Server 贰零壹零 Standard
包蕴1个设想实例许可,5个客商端访问授权,售卖价格999美金. — Windows Server
二零一零 Enterprise 包涵4个设想实例许可,24个客商端访谈授权,售卖价格3999澳元. —
Windows Server 2009 Datacenter 蕴含无限数量的特许,贩卖价格2999欧元/管理器.

Windows 10 Enterprise 2016 LTSB 14352

出于Windows和Mac的编写翻译流程大同小异,假设急需查阅编译流程请参见作者的另一篇博文Mac OSX 10.12.1 编译 Openjdk 9

  1. Ultimate
    风尚版,VISTA开始有了这么些等第,是最全最高等的,经常程序开采的Computer,玩游戏的Computer,建议用它,可是对配备稍有局地渴求
  2. Enterprise
    公司版,重要是在市肆方面有专有的优化和集成,主要用来服务器
  3. Home
    家庭版,独有部分玩耍,办公地点的底子,主要重在分界面雅观,非品质方面包车型地铁版本,玩游戏的人,不引入那一个本子
  4. Home base 家庭基础版,很简短的版本
  5. Home premium 家庭高档版,稍微增添了些别的作用
  6. Professional,pro
    专门的职业版,假若对分界面供给不是相当高,又想要做开发设计,同期Computer配置不是很好的时候,建议选取这几个
  7. vl,vol
    这几个只是一种激活授权格局不雷同,平日是附带文件名上的,表示团购、大量激活的版本
  8. msdn
    MSDN熟习不?就是微软的某种顾客,一种特有版本,有的人知晓为官方原版的情致,其实并未怎么异样的地方
  9. starter 首发版,能够清楚为二个文山会海最早发表的版本
  10. DataCenter
    数据基本,这一个貌似是服务器版才有的,比如win二〇一〇,首要集成的东西很全,安装的时候平素设置,无需再插入光盘
  11. 奇骏2,Release 最后版,或近乎公布版,平时那些本子不会有多少改动了
  12. with sp2 集成service pack 2
    ,意思就是融合为一了SP2那几个补丁包,日常SP包单独安装会有几百M,安装时间也非常少,假设集成了的话正是一件善事
  13. Preview
    预览版,基本没啥用,正是体会一下有如何遵循,不可能用来实际用途,避防中途出现不可制止的标题

是因为版权的来由,我只得选择Pro版本的Windows
10,但又丰盛想要集团版LTSC的简练和轻快,于是就有了以下那几个“杂交版本”

Compare Server Roles

KEY:

= Not Available

= Partial/Limited

= Full

Server Role

Enterprise

Datacenter

Standard

Itanium

Web

Web Services

Application Server

Print Services

活久见,没悟出LTSB也出了预览版。给大家来得Windows 10 Enterprise 二〇一六LTSB 红石(RubiconS1)14352版

1.编写翻翻译并配词置

./configure --with-target-bits=64 --with-freetype=/cygdrive/d/SoftwareFiles/Win/Freetype/2.7 --with-jvm-variants=server,client --with-boot-jdk-jvmargs="-Xlint:deprecation -Xlint:unchecked" --disable-zip-debug-info --disable-warnings-as-errors --with-debug-level=slowdebug --with-boot-jdk=/cygdrive/d/SoftwareFiles/Win/Oracle/Java/Jdk 2>&1 | tee configure_win_x64.log

以下教程来自这里:点击访问

图片 1

2.始发编写翻译

export LANG=C

make all LOG=debug 2>&1 | tee make_win_x64.log

上边是笔者那边编写翻译完结后的音信

----- Build times -------
Start 2016-11-20 22:40:02
End   2016-11-20 22:45:48

00:05:46 TOTAL
-------------------------
/usr/bin/printf "Finished building target 'all' in configuration 'windows-x86_64-normal-serverANDclient-slowdebug'\n" > >(/usr/bin/tee -a /cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/build.log) 2> >(/usr/bin/tee -a /cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/build.log >&2) && wait
Finished building target 'all' in configuration 'windows-x86_64-normal-serverANDclient-slowdebug'

本人还要还加多了EDGE浏览器,来自这里:点击访问

图片 2

编写翻译进度中遇见的难题:

问题1:

/usr/bin/touch /cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/support/headers/_the.java.compact1_headers
( /cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/configure-support/bin/fixpath.exe -c /cygdrive/d/softwa~1/win/micros~1/visual~1/12.0/vc/bin/amd64/cl -Fp/cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/hotspot/variant-server/libjvm/gtest/objs/BUILD_GTEST_LIBJVM.pch -Yuprecompiled.hpp -homeparams -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_ -nologo -W3 -MD -MP -DVM_LITTLE_ENDIAN -D_LP64=1 -DASSERT -D_NMT_NOINLINE_ -DTARGET_ARCH_x86 -DINCLUDE_SUFFIX_OS=_windows -DINCLUDE_SUFFIX_CPU=_x86 -DTARGET_COMPILER_visCPP -DAMD64 -DHOTSPOT_LIB_ARCH='"amd64"' -DCOMPILER1 -DCOMPILER2 -I/cygdrive/d/DocumentFls/Wor/Java/jdk9/hotspot/src/share/vm -I/cygdrive/d/DocumentFls/Wor/Java/jdk9/hotspot/src/os/windows/vm -I/cygdrive/d/DocumentFls/Wor/Java/jdk9/hotspot/src/cpu/x86/vm -I/cygdrive/d/DocumentFls/Wor/Java/jdk9/hotspot/src/os_cpu/windows_x86/vm -I/cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/hotspot/variant-server/gensrc -I/cygdrive/d/DocumentFls/Wor/Java/jdk9/hotspot/src/share/vm/precompiled -I/cygdrive/d/DocumentFls/Wor/Java/jdk9/hotspot/src/share/vm/prims -I/cygdrive/d/DocumentFls/Wor/Java/jdk9/test/fmw/gtest -I/cygdrive/d/DocumentFls/Wor/Java/jdk9/test/fmw/gtest/include -I/cygdrive/d/DocumentFls/Wor/Java/jdk9/hotspot/test/native -EHsc -EHsc -Z7 -d2Zi+ -I/cygdrive/d/softwa~1/win/micros~1/visual~1/12.0/vc/include -I/cygdrive/d/softwa~1/win/micros~1/visual~1/12.0/vc/atlmfc/include -I/cygdrive/c/progra~2/wi3cf2~1/8.1/include/shared -I/cygdrive/c/progra~2/wi3cf2~1/8.1/include/um -I/cygdrive/c/progra~2/wi3cf2~1/8.1/include/winrt -DTHIS_FILE='"test_json.cpp"' -c -showIncludes -Fd/cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/hotspot/variant-server/libjvm/gtest/objs/pdb/test_json.pdb -Fo/cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/hotspot/variant-server/libjvm/gtest/objs/test_json.obj /cygdrive/d/DocumentFls/Wor/Java/jdk9/hotspot/test/native/utilities/test_json.cpp > >(/usr/bin/tee /cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/hotspot/variant-server/libjvm/gtest/objs/test_json.obj.log) 2> >(/usr/bin/tee /cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/hotspot/variant-server/libjvm/gtest/objs/test_json.obj.log >&2) || ( exitcode=$? && /usr/bin/cp /cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/hotspot/variant-server/libjvm/gtest/objs/test_json.obj.log /cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/make-support/failure-logs/hotspot_variant-server_libjvm_gtest_objs_test_json.obj.log && exit $exitcode ) ) | /usr/bin/grep -v -e "^Note: including file:" -e "^test_json.cpp$" || test "$?" = "1" ; /usr/bin/echo /cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/hotspot/variant-server/libjvm/gtest/objs/test_json.obj: \\ > /cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/hotspot/variant-server/libjvm/gtest/objs/test_json.d ; /usr/bin/sed -e '/^Note: including file:/!d' -e 's|Note: including file: *||' -e 's|\\|/|g' -e 's|^\([a-zA-Z]\):|/cygdrive/\1|g' -e '\|/cygdrive/d/DocumentFls/Wor/Java/jdk9|I !d' -e 's|$| \\|g'  /cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/hotspot/variant-server/libjvm/gtest/objs/test_json.obj.log | /usr/bin/sort -u >> /cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/hotspot/variant-server/libjvm/gtest/objs/test_json.d ; /usr/bin/sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$//' -e 's/^[  ]*//' -e '/^$/ d' -e 's/$/ :/'  /cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/hotspot/variant-server/libjvm/gtest/objs/test_json.d > /cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/hotspot/variant-server/libjvm/gtest/objs/test_json.d.targets
Compiling test_logDecorators.cpp (for jvm.dll)

解决办法,将YourOpenJDK\hotspot\test\native\utilities\test_json.cpp
中的

TEST_VM(utilities, json_key_values_1) {
    JSON_GTest::test("/* comment */{ key1 : { \"key2\" : { \"key3\" : [ \"elem1\", \"elem2\","
            "{ \"key4\" : null }, 3 , 2 , 1 , 0 , -1 , -2 , -3 , true, false, null, ] }, \"key5\""
            " : true }, \"key6\" : [ \"☃\" ], key7 : \"val\",}", true);
}

TEST_VM(utilities, json_key_values_2) {
    JSON_GTest::test("/* comment */ { \"key1\" : { \"key2\" : { \"key3\" : [ \"elem1\", \"elem2\","
            "{ \"key4\" : null }, 3 , 2 , 1 , 0 , -1 , -2 , -3 , true, false, null, ] }, \"key5\""
            " : true }, \"key6\" : [ \"☃\" ], key7 : \"val\",}", true);
}

TEST_VM(utilities, json_quoted_symbols) {
    JSON_GTest::test("/*comment*/{\"ff1 fsd\":{\"☃\":{\"☃\":[\"☃\",\"☃\"]},"
            "\"☃\":true},\"☃\":[\"☃\"],\"foo\":\"☃\",}", true);
}

TEST_VM(utilities, json_incorrect_key) {
    JSON_GTest::test("/* comment */ { key1 error : { \"☃\" : { \"☃\" : [ \"☃\","
            " \"☃\" ] }, \"☃\" : true }, \"baz\" : [ \"☃\" ], foo : \"☃\",}",
            false); // first key needs to be quoted since it contains a space
}

修改为

//错误修正参考:http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/dba0765d2b6d
TEST_VM(utilities, json_key_values_1) {
    JSON_GTest::test("/* comment */{ key1 : { \"key2\" : { \"key3\" : [ \"elem1\", \"elem2\","
            "{ \"key4\" : null }, 3 , 2 , 1 , 0 , -1 , -2 , -3 , true, false, null, ] }, \"key5\""
            " : true }, \"key6\" : [ \"☃\" ], key7 : \"val\",}", true);
}

TEST_VM(utilities, json_key_values_2) {
    JSON_GTest::test("/* comment */ { \"key1\" : { \"key2\" : { \"key3\" : [ \"elem1\", \"elem2\","
            "{ \"key4\" : null }, 3 , 2 , 1 , 0 , -1 , -2 , -3 , true, false, null, ] }, \"key5\""
            " : true }, \"key6\" : [ \"☃\" ], key7 : \"val\",}", true);
}

TEST_VM(utilities, json_quoted_symbols) {
    JSON_GTest::test("/*comment*/{\"ff1 fsd\":{\"☃\":{\"☃\":[\"☃\",\"☃\"]},"
            "\"☃\":true},\"☃\":[\"☃\"],\"foo\":\"☃\",}", true);
}

TEST_VM(utilities, json_incorrect_key) {
    JSON_GTest::test("/* comment */ { key1 error : { \"☃\" : { \"☃\" : [ \"☃\","
            " \"☃\" ] }, \"☃\" : true }, \"baz\" : [ \"☃\" ], foo : \"☃\",}",
            false); // first key needs to be quoted since it contains a space
}

问题2

( /cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/configure-support/bin/fixpath.exe -c /cygdrive/d/softwa~1/win/micros~1/visual~1/12.0/vc/bin/amd64/cl -nologo -MD -Zc:wchar_t- -W3 -wd4800 -DWIN32_LEAN_AND_MEAN -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -D_WINSOCK_DEPRECATED_NO_WARNINGS -DWIN32 -DIAL -D_AMD64_ -Damd64 -D_LITTLE_ENDIAN -DWINDOWS -DARCH='"amd64"' -Damd64 -DDEBUG -I/cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/support/modules_include/java.base -I/cygdrive/d/DocumentFls/Wor/Java/jdk9/jdk/src/java.base/share/native/include -I/cygdrive/d/DocumentFls/Wor/Java/jdk9/jdk/src/java.base/windows/native/include -I/cygdrive/d/DocumentFls/Wor/Java/jdk9/jdk/src/java.base/windows/native/include -I/cygdrive/d/DocumentFls/Wor/Java/jdk9/jdk/src/java.base/share/native/libjava -I/cygdrive/d/DocumentFls/Wor/Java/jdk9/jdk/src/java.base/windows/native/libjava -Zi -I/cygdrive/d/DocumentFls/Wor/Java/jdk9/jdk/src/java.desktop/share/native/libjavajpeg -I/cygdrive/d/DocumentFls/Wor/Java/jdk9/jdk/src/java.base/windows/native/libjava -I/cygdrive/d/DocumentFls/Wor/Java/jdk9/jdk/src/java.base/share/native/libjava -I/cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/support/headers/java.desktop -Zi -I/cygdrive/d/softwa~1/win/micros~1/visual~1/12.0/vc/include -I/cygdrive/d/softwa~1/win/micros~1/visual~1/12.0/vc/atlmfc/include -I/cygdrive/c/progra~2/wi3cf2~1/8.1/include/shared -I/cygdrive/c/progra~2/wi3cf2~1/8.1/include/um -I/cygdrive/c/progra~2/wi3cf2~1/8.1/include/winrt -Od -DTHIS_FILE='"jdhuff.c"' -c -showIncludes -Fd/cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/support/native/java.desktop/libjavajpeg/pdb/jdhuff.pdb -Fo/cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/support/native/java.desktop/libjavajpeg/jdhuff.obj /cygdrive/d/DocumentFls/Wor/Java/jdk9/jdk/src/java.desktop/share/native/libjavajpeg/jdhuff.c > >(/usr/bin/tee /cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/support/native/java.desktop/libjavajpeg/jdhuff.obj.log) 2> >(/usr/bin/tee /cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/support/native/java.desktop/libjavajpeg/jdhuff.obj.log >&2) || ( exitcode=$? && /usr/bin/cp /cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/support/native/java.desktop/libjavajpeg/jdhuff.obj.log /cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/make-support/failure-logs/support_native_java.desktop_libjavajpeg_jdhuff.obj.log && exit $exitcode ) ) | /usr/bin/grep -v -e "^Note: including file:" -e "^jdhuff.c$" || test "$?" = "1" ; /usr/bin/echo /cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/support/native/java.desktop/libjavajpeg/jdhuff.obj: \\ > /cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/support/native/java.desktop/libjavajpeg/jdhuff.d ; /usr/bin/sed -e '/^Note: including file:/!d' -e 's|Note: including file: *||' -e 's|\\|/|g' -e 's|^\([a-zA-Z]\):|/cygdrive/\1|g' -e '\|/cygdrive/d/DocumentFls/Wor/Java/jdk9|I !d' -e 's|$| \\|g'  /cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/support/native/java.desktop/libjavajpeg/jdhuff.obj.log | /usr/bin/sort -u >> /cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/support/native/java.desktop/libjavajpeg/jdhuff.d ; /usr/bin/sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$//' -e 's/^[  ]*//' -e '/^$/ d' -e 's/$/ :/'  /cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/support/native/java.desktop/libjavajpeg/jdhuff.d > /cygdrive/d/DocumentFls/Wor/Java/jdk9/build/windows-x86_64-normal-serverANDclient-slowdebug/support/native/java.desktop/libjavajpeg/jdhuff.d.targets
Compiling jdinput.c (for javajpeg.dll)

化解办法,将YourOpenJDK\jdk\src\java.desktop\share\native\libjavajpeg\jdhuff.c中的

static const unsigned int MINUS_ONE = 0Xffffffff; 
static const int extend_test[16] =   /* entry n is 2**(n-1) */
  { 0, 0x0001, 0x0002, 0x0004, 0x0008, 0x0010, 0x0020, 0x0040, 0x0080,
    0x0100, 0x0200, 0x0400, 0x0800, 0x1000, 0x2000, 0x4000 };

static const int extend_offset[16] = /* entry n is (-1 << n) + 1 */
  { 0, (MINUS_ONE<<1) + 1, (MINUS_ONE<<2) + 1, (MINUS_ONE<<3) + 1, (MINUS_ONE<<4) + 1,
    (MINUS_ONE<<5) + 1, (MINUS_ONE<<6) + 1, (MINUS_ONE<<7) + 1, (MINUS_ONE<<8) + 1,
    (MINUS_ONE<<9) + 1, (MINUS_ONE<<10) + 1, (MINUS_ONE<<11) + 1, (MINUS_ONE<<12) + 1,
    (MINUS_ONE<<13) + 1, (MINUS_ONE<<14) + 1, (MINUS_ONE<<15) + 1 };

修改为

static const int extend_test[16] =   /* entry n is 2**(n-1) */
  { 0, 0x0001, 0x0002, 0x0004, 0x0008, 0x0010, 0x0020, 0x0040, 0x0080,
    0x0100, 0x0200, 0x0400, 0x0800, 0x1000, 0x2000, 0x4000 };

static const int extend_offset[16] = /* entry n is (-1 << n) + 1 */
  { 0, ((-1)<<1) + 1, ((-1)<<2) + 1, ((-1)<<3) + 1, ((-1)<<4) + 1,
    ((-1)<<5) + 1, ((-1)<<6) + 1, ((-1)<<7) + 1, ((-1)<<8) + 1,
    ((-1)<<9) + 1, ((-1)<<10) + 1, ((-1)<<11) + 1, ((-1)<<12) + 1,
    ((-1)<<13) + 1, ((-1)<<14) + 1, ((-1)<<15) + 1 };

该难题还有可能会并发在同目录下的jdphuff.c文件中,根据如上的同一的秘技修改即可;须要静心的是那三个文件是自个儿在Mac下为了通过编写翻译打过补丁后的文书【Mac
OSX 10.12.1 编译 Openjdk
9】,即便你的源码没有打过补丁,那么无需再修改,OpenJDK官方库克隆下来的源代码里面是一直不MINUS_ONE那个定义的,此职务原来暗许正是-1,所以无需修改

1,下载必备文件:百度网盘
提取码:gsp6,把下载到的缩减包解压,放到C盘根目录,你会见到C盘根目录多了三个Pro-LTSC文件夹

一致LTSB未有Cortana小娜、Edge、应用软件X。和别的红石版本一样增多了Linux
Bash。(以上截图来自虚构机)

2,以管理人身份运行CMD,输入以下命令:

图片 3

dism /NoRestart /online /add-package /packagepath:C:\Pro-LTSC\x64.cab

图片 4

注:借使是32人系统则把x64.cab改成x86.cab

图片 5

3,退换VL key,其实正是把Pro版的VL
key录进去就能够,其实常规的信用合作社版能够直接用这一步转成专门的学业版,但LTSC因为精简了一些模块,所以多了前边那一步。

实体机安装二〇一五 LTSB
14352的新闻。偶使用了一个星期,推荐给喜欢尝鲜的同窗。

slmgr.vbs –ipk VK7JG-NPHTM-C97JM-9MPGT-3V66T

图片 6

由来你就获取了贰个Pro版的LTSC版本。

履新依旧不能选择。

有关edge怎么加进去,看如今那一个链接写的很掌握了。

就那一个,新效用怎么着的等揭橥规范版时再说。

注意,原著描述有误,导入VL
key只会兑现版本调换,并不可能落实集火,除非你早就配备好了KMS。

WZOR 泄露的KMS key:
Windows 10 Enterprise 2016 LTSB : DCPHK-NFMTC-H88MJ-PFHPY-QJ4BJ
Windows 10 Enterprise 2016 LTSB N : QFFDN-GRT3P-VKWWX-X7T3R-8B639

产品下载:敬请期望

优化能够参见这里:Windows 10
10240与10586(1511)优化

20160612

发表评论

电子邮件地址不会被公开。 必填项已用*标注