Eclipse's workspace: Shall I put my images in 'src' or 'bin' folder?

前端 未结 7 1736
梦谈多话
梦谈多话 2020-12-17 01:39

I\'m working in a project in Java and sometimes all my images randomly dissapeared from the project\'s bin folder. It is getting very annoying because I have to put everythi

7条回答
  •  既然无缘
    2020-12-17 02:28

    for Eclipse you may just create folder directly in src folder (or in some its package). Then Copy and Paste your image files into created folder. If You need to get proper path till current image just use Class.getResource("yourCreatedFolder/yourImage.someExtension")

提交回复
热议问题