Eclipse的工作空间:我将图像放在“src”或“bin”文件夹中? [英] Eclipse's workspace: Shall I put my images in 'src' or 'bin' folder?

查看:231
本文介绍了Eclipse的工作空间:我将图像放在“src”或“bin”文件夹中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个Java项目中工作,有时我的所有图像随机从项目的bin文件夹中分离出来。这是非常烦人的,因为我必须把每一次都重新发生。有人告诉我,我不应该把额外的文件放在bin但是在src。
但是如果我把它放在src中,eclipse不会读取我的图像,就像它们不在那里一样。
为什么会发生这种情况?
谢谢。

解决方案

创建一个资源他们在那里然后将该文件夹标记为源文件夹(右键 - >构建路径 - >用作源文件夹)


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 everything again every time it happens. Someone told me that I shouldn't put my extra files in bin but in src. But eclipse doesn't read my images if I put them in src, as if they weren't there. Why is this happening? Thanks.

解决方案

Create one resources folder and put them there. Then mark that folder as "source folder" (right click -> Build Path -> Use as source folder)

这篇关于Eclipse的工作空间:我将图像放在“src”或“bin”文件夹中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆