1. 打开命令提示符(以管理员身份运行)。
2. 输入以下命令查看已安装的Java版本:wmic product where "name like '%Java%'" get name
3. 找到要卸载的Java产品名称后,使用以下命令卸载:wmic product where "name='Java产品名称'" call uninstall例如:wmic product where "name='Java 8 Update 301'" call uninstall
wmic product where "name like '%Java%'" get name
复制代码
wmic product where "name='Java产品名称'" call uninstall
复制代码
wmic product where "name='Java 8 Update 301'" call uninstall