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.
如何将资源(图像)直接添加到我的 JAR 文件中?例如,如果您打开 minecraft.jar(Minecraft 的),您可以看到一些包含资源的类和文件夹。
如果我尝试将任何资源放在我的 /src 文件夹中,Eclipse 将在包资源管理器中显示它们,这很烦人。
当我反编译 Minecraft(Minecraft Coder Pack)时,/src 文件夹中没有资源。如何像 Minecraft 一样添加我的资源?
提前致谢!!
You can just create a new folder and mark it as source folder (rightclick on folder in Eclipse -> Build Path -> Use as source folder). Now you should be able to use the ressources without them being in the /src folder.