简体   繁体   English

Java报告即使已安装了最新版本,也已弃用Java版本

[英]Java reports that the Java version is deprecated even though the latest version is installed

Since I updated my Window version to Windows 10 an old Java programm doesn't start, instead I got a Java report that the Java version is deprecated. 由于我将Window版本更新为Windows 10,因此旧的Java程序无法启动,而是收到Java报告,表明该Java版本已过时。 Now I updated Java to the latest version but the error still occurs. 现在,我将Java更新到了最新版本,但是仍然出现错误。

The Java programm was written with Java 4 and I'm using the latest Windows and Java version. Java程序是用Java 4编写的,而我使用的是最新的Windows和Java版本。

Does anyone know a solution? 有人知道解决方案吗?

There might be a java in your system32 folder that may cause this issue. 您的system32文件夹中可能有一个Java,可能会导致此问题。

You just press windows key and in the opening box type java. 您只需按Windows键,然后在打开的框中键入java。 The system will pick one java.exe, right-click the same and go to the path. 系统将选择一个java.exe,右键单击它,然后转到路径。 If it is not your latest version, remove it. 如果不是最新版本,请将其删除。

You can verify the java version using the command java -version in command prompt. 您可以在命令提示符下使用命令java -version来验证Java版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM