可执行 jar 文件未运行

发布于 2024-09-29 03:54:24 字数 124 浏览 0 评论 0原文

我创建了一个尺寸相当大(125,000 kb)的可运行 Jar 文件。当我运行它时,该 jar 文件内的应用程序不会显示,但在任务管理器中 javaw.exe(应链接到该 jar 文件)进程正在运行。有谁知道问题是什么以及如何克服它?

I have created a runnable Jar file of quite large dimension (125,000 kb). When I run it the application inside this jar file is not shown but in the Task Manager the javaw.exe (which should be linked to this jar file) process is running. Does anyone know what the problem is and how it may be overcome?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

去了角落 2024-10-06 03:54:24

从命令行,使用 java.exe -jar jarname.jar (不是 javaw.exe)运行应用程序,这样您将看到打印到系统输出或系统错误(如果有)的错误和异常。

From the command line, run your application using java.exe -jar jarname.jar (not javaw.exe), so you'll see the errors and exceptions printed to the system out or system err if there is any.

婴鹅 2024-10-06 03:54:24

你必须在主类中传递一些代码
示例:如果您想打开一个表单,请在主类中编写以下命令:-
new ().setVisible(true);

you have to pass some code in the main class
example : if you want to open a form then write in main class the following command:-
new ().setVisible(true);

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文