简体   繁体   English

如何为具有图像和声音的applet创建.jar文件?

[英]How do you create a .jar file for an applet that has images and sound?

I am creating a Simon Says memory sequence game that is created in Java Applet. 我正在创建在Java Applet中创建的Simon Says记忆序列游戏。 I need to post it on a website and just be able to run it without using a java compiler. 我需要将其发布在网站上,并且无需使用Java编译器就可以运行它。 It has an Image folder and a Sound folder that need to be included in the .jar file. 它有一个图像文件夹和一个声音文件夹,它们需要包含在.jar文件中。

Here is the link to some code. 这是一些代码的链接

You have to pack all necessary files to this jar and use them as resources not files. 您必须将所有必需的文件打包到此jar中,并将它们用作资源而非文件。 See how it's done here . 这里查看如何完成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM