简体   繁体   English

如何检查我的已安装程序需要哪个Java版本

[英]How to check which of my installed program needs which version of Java

I'm hoping to learn if there is a method to determine what version of Java each one of my installed programs is using/depended on, if they are using it. 我希望了解是否有一种方法可以确定每个安装的程序使用/依赖的Java版本(如果正在使用)。

I have several different versions of Java installed on my machine and wanted to make sure which ones I can uninstall without breaking any of the installed programs. 我在计算机上安装了几种不同版本的Java,并希望确保可以在不破坏任何已安装程序的情况下卸载哪些Java。 I really don't want to have to uninstall them all (one at a time) and then try running each of the programs individually to check if it's working or not. 我真的不想完全卸载它们(一次卸载),然后尝试分别运行每个程序以检查其是否正常运行。 Or is that really the only way? 还是那真的是唯一的方法?

Check the version of Java in path environment variables. 在路径环境变量中检查Java版本。 Your machine uses only this version. 您的机器仅使用此版本。 Or on the Windows command line, javac -version . 或在Windows命令行上, javac -version

There is no common way to solve this problem. 没有解决此问题的通用方法。 Some programs use the JAVA_HOME setting to start, some use startup scripts variables, etcetera. 一些程序使用JAVA_HOME设置启动,一些程序使用启动脚本变量等。 You have to test all your programs. 您必须测试所有程序。

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

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