问题
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?
回答1:
The javaw
utility is not available or needed on Linux. Just use java
instead.
Explanation:
on Windows, the difference between
java
andjavaw
is thatjava
launches a new Windows console andjavaw
doesn't.on Linux, the
java
command does not launch a new console, and hence there is no need for ajavaw
variant.
来源:https://stackoverflow.com/questions/14331406/why-javaw-is-not-found-on-my-java-installation-on-ubuntu