为什么在ubuntu上的java安装上找不到javaw? [英] Why javaw is not found on my java installation on ubuntu?
问题描述
我尝试使用 javaw demo
启动一个程序,并且系统提示我输入错误消息,指出找不到命令'javaw'。我检查了我的bin文件夹,找不到javaw。可能是什么原因?
I tried to start a program using javaw demo
and I was prompted with an error message saying that command 'javaw' is not found. I checked my bin folder and javaw was not found. What could be the reason?
推荐答案
javaw
实用程序不可用或需要在Linux上。只需使用 java
。
The javaw
utility is not available or needed on Linux. Just use java
instead.
说明:
Explanation:
-
在Windows上,
java
与javaw
是java
启动新的Windows控制台而javaw
则没有。
on Windows, the difference between
java
andjavaw
is thatjava
launches a new Windows console andjavaw
doesn't.
在Linux上, java
命令没有启动新的控制台,因此没有必要对于 javaw
变体。
on Linux, the java
command does not launch a new console, and hence there is no need for a javaw
variant.
这篇关于为什么在ubuntu上的java安装上找不到javaw?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!