日食| Packge变成目录,破坏了我的整个项目 [英] Eclipse | Packge turns into a directory, breaks my whole project

查看:78
本文介绍了日食| Packge变成目录,破坏了我的整个项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我遇到的问题非常奇怪.当我设置了一个预先存在的项目(并将其从计算机A移至计算机B)时.我创建一个新项目并以正常方式导入它.这是非常非常基于包装的,大约有30-40个包装.将两个软件包(而不是软件包)放入目录中.

So the issue i am having is extremely weird. When i have a preexisting project set up (and am moving it from computer A to computer B). I make a new project and import it the normal way. It is very, very package based and there are around 30-40 packages. Two packages are made into directories instead of packages.

例如,它不是org.project1.tools.stuff,而是org/project1/tools/stuff.

For example, instead of org.project1.tools.stuff it is org/project1/tools/stuff.

我检查了代码,在顶部检查了org.project1.tools.stuff软件包,然后导入了等等.

I have checked the code, at the top it goes package org.project1.tools.stuff and then the imports and so on.

由于它在目录列表中,而不是在我的实际软件包中,因此它严重破坏了我的整个项目.

Since it is in a directory listing and NOT in my actual packages, it is severely breaking my entire project.

任何帮助将不胜感激!

推荐答案

如果右键单击项目,请选择properties-> Java Build Path.在随后的屏幕上,您可以指定哪些文件夹是源文件夹.

If you right click on your project, select properties->Java Build Path. On the subsequent screen you can specify which folders are source folders.

这篇关于日食| Packge变成目录,破坏了我的整个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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