无法将我的文件夹包含在可执行 .jar 文件中
Can't include my folders in the executable .jar file
我有一些文件夹,里面有配乐、图像……我的游戏需要这些。现在,当我尝试制作可执行的 .jar 文件时,Eclipse 不包含这些文件夹。
我能做什么?Here is a pic of the folders, if it helps :)
如果您想将这些文件作为您的资源,您需要将它们添加到 src/main/resources
目录。
这篇文章可能会有所帮助https://www.codexpedia.com/java/java-packaging-resource-files-into-a-runnable-jar-file/
尝试将资源文件夹包含在 src/main 文件夹中。
我有一些文件夹,里面有配乐、图像……我的游戏需要这些。现在,当我尝试制作可执行的 .jar 文件时,Eclipse 不包含这些文件夹。
我能做什么?Here is a pic of the folders, if it helps :)
如果您想将这些文件作为您的资源,您需要将它们添加到 src/main/resources
目录。
这篇文章可能会有所帮助https://www.codexpedia.com/java/java-packaging-resource-files-into-a-runnable-jar-file/
尝试将资源文件夹包含在 src/main 文件夹中。