久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Java 的“os.name"適用于 Windows 10?

Java#39;s quot;os.namequot; for Windows 10?(Java 的“os.name適用于 Windows 10?)
本文介紹了Java 的“os.name"適用于 Windows 10?的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

限時(shí)送ChatGPT賬號(hào)..

在Java中,我們可以通過查看os.name的屬性值來知道底層操作系統(tǒng)的名稱:System.getProperty("os.name").

In Java, we can see the property value of os.name to know the name of the underlying operating system: System.getProperty("os.name").

對(duì)于每個(gè)版本的 Windows,它總是返回操作系統(tǒng)的確切名稱:Windows XP 表示 XP,Windows Vista 表示 Vista,Windows 7 代表 7,Windows 8.1 代表 8.1,依此類推...

For each edition of Windows, it used to return always the exact name of the OS: Windows XP for XP, Windows Vista for Vista, Windows 7 for Seven, Windows 8.1 for 8.1, and so on...

問題是:我剛剛使用發(fā)布的 Microsoft 更新程序?qū)⑽业?Windows 8.1 更新到了 Windows 10,而且這個(gè)屬性似乎仍然存在 Windows 8.1:

The problem is: I just updated my Windows 8.1 to Windows 10 using the released Microsoft updater, and it seems like this property still remains Windows 8.1:

public class OSTest {
  public static void main(String[] args) {
    System.out.println(System.getProperty("os.name"));
  }
}

如何為此創(chuàng)建解決方法?而且,有誰知道如果安裝新的 Windows 10 副本,這個(gè)問題是否仍然存在 - 也就是說,這個(gè)錯(cuò)誤是由 Microsoft 自動(dòng)更新程序引起的 - ?

How can I create a workaround for this? And, does anyone know if this problem persists if installing a fresh Windows 10 copy - that is, this bug is caused by the Microsoft auto-updater -?

推薦答案

這是一個(gè)已知問題 JDK-8066504 已在即將發(fā)布的 Java 8 更新 60 中修復(fù).

This is a known problem JDK-8066504 that has been fixed in upcoming Java 8 update 60.

原因是 GetVersionEx 函數(shù)的行為自Windows 8.1.

The reason is GetVersionEx function has changed its behavior since Windows 8.1.

有多種可能的解決方法,請(qǐng)參閱 MSDN 文章.

There are multiple possible workarounds, see MSDN article.

最簡單的就是執(zhí)行cmd.exe/c ver.

另一種是查看其中一個(gè)系統(tǒng)文件的版本信息,例如kernel32.dll.

The other is to look at the version information of one of the system files, e.g. kernel32.dll.

這篇關(guān)于Java 的“os.name"適用于 Windows 10?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Parsing an ISO 8601 string local date-time as if in UTC(解析 ISO 8601 字符串本地日期時(shí)間,就像在 UTC 中一樣)
How to convert Gregorian string to Gregorian Calendar?(如何將公歷字符串轉(zhuǎn)換為公歷?)
Java: What/where are the maximum and minimum values of a GregorianCalendar?(Java:GregorianCalendar 的最大值和最小值是什么/在哪里?)
Calendar to Date conversion for dates before 15 Oct 1582. Gregorian to Julian calendar switch(1582 年 10 月 15 日之前日期的日歷到日期轉(zhuǎn)換.公歷到儒略歷切換)
java Calendar setFirstDayOfWeek not working(java日歷setFirstDayOfWeek不起作用)
Java: getting current Day of the Week value(Java:獲取當(dāng)前星期幾的值)
主站蜘蛛池模板: 伊人成人免费视频 | 91精品国产综合久久福利软件 | 日本一区二区三区视频在线 | 中文精品一区二区 | 日本在线视 | 久久国产视频网 | 久久久成人一区二区免费影院 | 国产成人免费 | www.国产精| 久久视频一区 | 成人黄色av网站 | 久久久国产精品 | 最新日韩在线 | 久久久久久久久久久成人 | 欧美视频在线播放 | 精品一区二区电影 | 91婷婷韩国欧美一区二区 | 成人欧美一区二区三区1314 | 欧美日韩精品专区 | 成人av一区 | 欧美 视频 | 久久男女视频 | 精品国产乱码久久久久久丨区2区 | 国产视频福利一区 | 亚洲视频在线观看 | 蜜桃视频一区二区三区 | 日韩一二区 | 激情一区二区三区 | 日韩免费一区二区 | 激情国产视频 | 久久综合久久久 | 欧美视频在线播放 | 免费毛片网站在线观看 | 久久精品国产免费 | 二区av| 国产美女视频黄a视频免费 国产精品福利视频 | 精品九九在线 | 日韩av免费在线观看 | 国产在线观看av | 精品三级在线观看 | 欧美视频在线免费 |