Java 小程序不再调用 public static void main() [英] Java applet does not call public static void main() anymore

查看:28
本文介绍了Java 小程序不再调用 public static void main()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个小程序,它最初是很久以前用 JBuilder 构建的.我相信直到最近它都运行良好.它已停止工作.导入Eclipse调试,发现没有调用public static void main().这可以解释小程序的崩溃.

I have an applet that was originally built with JBuilder long time ago. I believe it worked fine until fairly recently. It has stopped working. I have imported it to Eclipse to debug, and found that public static void main() is not called. This can explain the applet's crash.

我的预感是,较新的 JVM 不会为小程序调用 public static void main().有人可以对此有所了解吗?

My hunch is that the newer JVM does not call public static void main() for applets. Could anyone shed some light on this?

推荐答案

Java Applets 需要 小程序生命周期.小程序没有任何 main.

Java Applets require the applet lifecycle. There isn't any main for an applet.

这篇关于Java 小程序不再调用 public static void main()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆