如何组织Java程序的源文件?

Edw*_*its 2 java resources exe jar project-organization

我已经创建了一个小程序Java.它使用Java类,一些图像并生成一些其他资源(.php文件,图像,样式表等).

我正在编译源代码.jar并创建一个.exe程序,它应该使用我.jar和其他资源.

组织Java程序的所有源代码的最佳实践是什么?

Ara*_*ram 6

即使您不使用maven,我也会推荐使用以下maven结构作为标准惯例.

src/main/java   Application/Library sources
src/main/resources  Application/Library resources
src/main/filters    Resource filter files
src/main/assembly   Assembly descriptors
src/main/config Configuration files
src/main/scripts    Application/Library scripts
src/main/webapp Web application sources
src/test/java   Test sources
src/test/resources  Test resources
src/test/filters    Test resource filter files
src/site    Site
LICENSE.txt Project's license
NOTICE.txt  Notices and attributions required by libraries that the project depends on
README.txt  Project's readme
Run Code Online (Sandbox Code Playgroud)