Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我用 LWJGL 创建了一个 Applet。在 Eclipse 中作为 Applet 运行时,它运行良好。
我通过右键单击项目导出 jar 文件,然后导出并通过窗口。
当我尝试在我的网络浏览器中加载它时,我看到一个 java 屏幕加载,然后全白,没有任何反应。它应该显示一个黄色背景。
这就是我在 html 中加载我的小程序的方式:
<applet code="com.game.engine.Main" archive="test.jar" width="1024" height="786">
使用小程序非常困难。您必须确保将其导出为 JAR 文件而不是可运行的 JAR 文件。此外,您必须将您正在使用的所有库提取到 JAR 文件中。
我希望这能澄清一点!