"java","javaw"和"javaws"之间有什么区别? [英] What is the difference between 'java', 'javaw', and 'javaws'?
问题描述
java
,javaw
和javaws
有什么区别?
我发现在Windows上,大多数Java使用都是通过javaw
完成的.
I have found that on Windows most usage of Java is done using javaw
.
推荐答案
有关以下内容,请参见Java工具文档:
See Java tools documentation for:
-
java
工具将启动Java应用程序.它是通过启动Java运行时环境,加载指定的类并调用该类的main
方法来实现的. -
javaw
命令与java
相同,不同之处在于,对于javaw
,没有关联的控制台窗口.当您 不想不要显示命令提示符窗口时,请使用javaw
.
- The
java
tool launches a Java application. It does this by starting a Java runtime environment, loading a specified class, and invoking that class'smain
method. - The
javaw
command is identical tojava
, except that withjavaw
there is no associated console window. Usejavaw
when you don't want a command prompt window to appear.
-
javaws
命令, " Java Web Start 命令" javaws
command, the "Java Web Start command"
javaws
命令启动Java Web Start,这是Java网络启动协议(JNLP)的参考实现. Java Web Start启动网络上托管的Java应用程序/小程序.
如果指定了JNLP文件,则javaws
将启动JNLP文件中指定的Java应用程序/小程序.
javaws
启动器具有当前发行版中支持的一组选项.但是,这些选项可能会在将来的版本中删除.
The
javaws
command launches Java Web Start, which is the reference implementation of the Java Network Launching Protocol (JNLP). Java Web Start launches Java applications/applets hosted on a network.
If a JNLP file is specified,javaws
will launch the Java application/applet specified in the JNLP file.
Thejavaws
launcher has a set of options that are supported in the current release. However, the options may be removed in a future release.
另请参见 JDK 9发行说明 不推荐使用的API,功能和选项:
See also JDK 9 Release Notes Deprecated APIs, Features, and Options:
不推荐使用Java部署技术,并将在以后的版本中将其删除
JDK中已弃用了Java Applet和WebStart功能(包括Applet API,Java插件,Java Applet Viewer,JNLP和Java Web Start,包括javaws
工具). 9 ,并将在以后的版本中删除.
Java Deployment Technologies are deprecated and will be removed in a future release
Java Applet and WebStart functionality, including the Applet API, the Java plug-in, the Java Applet Viewer, JNLP and Java Web Start, including thejavaws
tool, are all deprecated in JDK 9 and will be removed in a future release.
这篇关于"java","javaw"和"javaws"之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!