无法在Eclipse中创建文件夹

时间:2023-01-15 09:17:53

All I want is to make a folder at the "root" of my eclipse stuff so I can store projects from different classes together. However, it won't let me do that, the "Finish" button is greyed out until I select a parent folder - I must choose from one of the many projects I want IN this new folder. What do I do?

我想要的只是在我的日食的“根”处创建一个文件夹,这样我就可以将来自不同类的项目存储在一起。但是,它不会让我这样做,“完成”按钮是灰色的,直到我选择一个父文件夹 - 我必须从我想要的许多项目之一中选择这个新文件夹。我该怎么办?

3 个解决方案

#1


1  

It kind of sounds like you'd be best served by a single project that contains all of the source files from your classes. The workspace is the root directory and any subdirectories are expected to be individual projects.

听起来好像你最好由一个包含你班级中所有源文件的项目提供服务。工作空间是根目录,任何子目录都应该是单个项目。

#2


0  

I agree with what everyone has been saying, create a project for the entire class as 1 project. Then you can create as many classes as needed with main() and only export that single class (or dependent classes as needed) to turn in. In addition, you could package each individual project assignment in a separate package. As stated above, leave your root (workspace) where it is.

我同意每个人的意见,为整个班级创建一个项目作为一个项目。然后,您可以根据需要使用main()创建任意数量的类,并仅导出该单个类(或根据需要的依赖类)。此外,您可以将每个单独的项目分配打包在单独的包中。如上所述,将您的根(工作区)留在原处。

#3


0  

Instead of creating multiple projects you may use Java packages option. Create a new package and put all your additional classes over there. Please note that all Java files should be under src/ directory of the eclipse project.

您可以使用Java包选项,而不是创建多个项目。创建一个新包并将所有其他类放在那里。请注意,所有Java文件都应该在eclipse项目的src /目录下。

#1


1  

It kind of sounds like you'd be best served by a single project that contains all of the source files from your classes. The workspace is the root directory and any subdirectories are expected to be individual projects.

听起来好像你最好由一个包含你班级中所有源文件的项目提供服务。工作空间是根目录,任何子目录都应该是单个项目。

#2


0  

I agree with what everyone has been saying, create a project for the entire class as 1 project. Then you can create as many classes as needed with main() and only export that single class (or dependent classes as needed) to turn in. In addition, you could package each individual project assignment in a separate package. As stated above, leave your root (workspace) where it is.

我同意每个人的意见,为整个班级创建一个项目作为一个项目。然后,您可以根据需要使用main()创建任意数量的类,并仅导出该单个类(或根据需要的依赖类)。此外,您可以将每个单独的项目分配打包在单独的包中。如上所述,将您的根(工作区)留在原处。

#3


0  

Instead of creating multiple projects you may use Java packages option. Create a new package and put all your additional classes over there. Please note that all Java files should be under src/ directory of the eclipse project.

您可以使用Java包选项,而不是创建多个项目。创建一个新包并将所有其他类放在那里。请注意,所有Java文件都应该在eclipse项目的src /目录下。