结尾字母是什么意思pythonw,javaw,javap,javac,

2024-06-02 06:45:46 发布

您现在位置:Python中文网/ 问答频道 /正文

我刚刚在python的:pythonw.exe和java的:javaw.exe之间建立了一个连接,我对此很好奇,因为我无法理解其中一些结尾字母的含义。我知道javac是Java编译器,所以我假设名称末尾的w也有一些意义。我也见过更多类似于javapjavah等等。有人能概括一下最常见的结尾如c、w、h、p等的含义吗?在

我试过用google搜索Stackoverflow,但没有找到任何不只是关于特定结尾的东西。在

编辑:

我知道这些问题有很多孤立的答案。我真正想知道的是,是否有一个地方可以让我看到一个完整的(或体面的)普通字母及其含义的列表,或者是否有人能为我概述它们?还有,怎么称呼这些结尾,这样我就不只是指“结尾字母”了?在


Tags: 名称编译器结尾字母javaexe意义末尾
3条回答

默认情况下,java在windows操作系统中执行时打开一个控制台窗口。使用javaw时,java进程不会在控制台窗口中打开。在脚本或捆绑的可执行文件中使用javaw是一个很好的UX实践。我想这对pythonw也是一样的在Java for Windows中,w'代表“Windows”。在

没有“公共结尾”,这取决于开发人员决定使用什么来命名他们的可执行文件。在

对于Java,以下是各种Java 8可执行后缀:

  • java: The launcher for Java applications. In this release, a single launcher is used both for development and deployment. The old deployment launcher, jre, is no longer provided.
  • javac: The compiler for the Java programming language.
  • javah: C header and stub generator. Used to write native methods.
  • javap: Class file disassembler.
  • javaw: The javaw command is identical to java, except that with javaw there is no associated console window. Use javaw when you do not want a command prompt window to appear. The javaw launcher will, however, display a dialog box with error information if a launch fails.
  • javaws: Command line tool for launching Java Web Start and setting various options.

https://docs.oracle.com/javase/7/docs/technotes/tools/#basic

两者之间的区别python.exe以及pythonw.exe是终端抑制。使用执行脚本时pythonw.exe,没有打开终端窗口,如果您编写了一个使用GUI的程序,并且不希望显示额外的终端窗口,这是很好的

更多信息请参见此处:https://docs.python.org/2/using/windows.html#executing-scripts

相关问题 更多 >