java-version'不被识别为内部或外部命令,可操作程序或批处理文件 [英] java-version' is not recognized as an internal or external command, operable program or batch file

查看:103
本文介绍了java-version'不被识别为内部或外部命令,可操作程序或批处理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,我已经安装了最新版本的Java,但是当我转到cmd并且我得到java版本时抛出java版本它不被识别为内部或外部命令,< div>可操作程序或批处理文件。< / div>< div> I
有相同的问题,我需要为需要Java JRE的Android应用程序安装JRE 1.7或更高版本。我是否需要安装JRE 1.7,因为我已经安装了Javas?如果我需要下载它?该应用程序将无法连接到计算机的
阵列,因为它安装在手机和计算机上,它可以在PC上实时控制Android。< / div>< div>它叫做Desk Dock app desk dock app / windows ser< / div>< div>< p>我该怎么办?< img alt =""
src =" https://social.msdn.microsoft.com/Forums/getfile/1383380" />< / p>< p>他们从Microsoft论坛发送给我。我很抱歉我没有在我需要的论坛中提问,因为我不知道在哪里提出这个问题。& nbsp;< / p>< / div>

I have a problem, I have installed the latest version of Java, but when I go to cmd and I get java-version throw me java-version it is not recognized as an internal or external command,<div>operable program or batch file.</div><div>I have the same question, I need to install JRE 1.7 or later for an Android application that requires a Java JRE. Do I need to install JRE 1.7 because I already have Javas installed? If I need to download it? The application will not connect to the computer's array because it is installed on the phone and on the computer it is control android over pc in real time app.</div><div>It's called Desk Dock app desk dock app/windows ser</div><div><p>What should I do?<img alt="" src="https://social.msdn.microsoft.com/Forums/getfile/1383380" /></p><p>They sent me here from the Microsoft Forum. I apologize that I did not ask a question in a forum where I need because I do not know where to ask this question.&nbsp;</p></div>

推荐答案

Hello Dejanx,

Hello Dejanx,

1。确保添加了"%JAVA_HOME%\ bin;"到你的PATH环境变量。

2."java -version"但不是"java-version"。命令"java"之间有一个空格。和参数"-version"。

1. Make sure you have added "%JAVA_HOME%\bin;" to your PATH environment variables.
2. "java -version" but not "java-version". There is a space between command "java" and parameter "-version".


祝你好运,

Best regards,


德雷克


这篇关于java-version'不被识别为内部或外部命令,可操作程序或批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆