因此,由于 Netbeans 生成的 jar 需要它也生成的 lib 文件夹,我该如何将 lib 文件夹添加到生成的 jar 并更改 list ,以便它在没有任何命令行使用的情况下启动?
最佳答案
..so that it launches without any command line usage?
如果它有 GUI,使用 Java Web Start 启动它.
JWS provides many appealing features including, but not limited to, splash screens, desktop integration1, file associations, automatic update (including lazy downloads and programmatic control of updates), partitioning of natives & other resource downloads by platform, architecture or Java version, configuration of run-time environment (minimum J2SE version, run-time options, RAM etc.), easy management of common resources using extensions..
- 桌面集成:受支持平台上的桌面快捷方式和菜单项 - 不再需要基于命令行启动!
关于Java Netbeans GUI 生成器制作可执行 jar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11026732/