Java class getResource() with eclipse

后端 未结 2 1817
悲&欢浪女
悲&欢浪女 2021-01-05 23:30

i\'ve been trying to get getResource to work correctly this whole morning but so far the only way i\'ve had to get it working is by moving the res folder to the bin folder a

2条回答
  •  轮回少年
    2021-01-06 00:16

    Normally, in a Java project, you would add the /res folder as a source folder in the project settings.

    In a Plugin project, you would add the folder to the output in the build.properties.

    In a Dynamic Web project, you would put the /res folder in the WebContent folder.

提交回复
热议问题