[英]How do you create a .jar file for an applet that has images and sound?
[英]Where is the right way that should you put your resources (i.e Images and Sound files) when trying to create a JAR file?
我正在使用 Intellij IDEA,每当我构建 JAR 工件时,它都会将自己放置在 productions 文件夹中。 当我尝试运行 JAR 文件时,缺少一些自定义功能(即在组件上设置图标并添加声音),而在 Intellij 的 IDEA 上运行它时运行正常。 我知道它涉及使用 getResourceAsStream 方法,但是有某种正确的方法来放置外部资源吗?
我可能会添加其他问题,放置 META-INF 文件夹的正确目的地在哪里? 我应该为所有外部文件创建一个资源文件夹吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.