gpt4 book ai didi

java - 在没有 GUI 的情况下运行 Netbeans 平台应用程序

转载 作者:行者123 更新时间:2023-12-01 11:30:19 24 4
gpt4 key购买 nike

我的 Java 应用程序使用 Netbeans 平台应用程序构建。我需要在没有 GUI 的情况下运行我的应用程序。有人知道如何在没有 GUI 的情况下运行 Netbeans 平台应用程序吗?

最佳答案

信息主要来自How Can I Make My NetBeans Platform Run in GUI or Command-Line Mode? :

  • 您通常需要添加一个模块来使用 Command Line Processing API 解释一些自定义命令行参数。
  • 请记住,您不应将 System.out、System.err 和 System.in 用于选项处理器中的输出、错误和输入流,而是从作为参数传递给 process 方法的 Env 对象获取它们。
  • 当运行包含 Window 系统和其他 GUI 模块的平台应用程序时,您还需要指定 --nosplash --nogui在启动时的命令行中防止显示启动画面和窗口系统。

关于java - 在没有 GUI 的情况下运行 Netbeans 平台应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30453141/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com