[英]In Eclipse my src folder is missing
I am a beginner coder, and this is my first time using Eclipse. 我是一个初学者,这是我第一次使用Eclipse。 I have started my new (Java) project and everything is going well until I look at the file explorer.
我已经开始了我的新(Java)项目,一切顺利,直到我看了文件浏览器。 In my project folder I have a JRE system library, but no src folder.
在我的项目文件夹中,我有一个JRE系统库,但没有src文件夹。 Is there a way to start a new src folder?
有没有办法启动一个新的src文件夹?
Picture of the file explorer 文件浏览器的图片
Tipically a Java Project contains by default a src folder, I don't know the reason your project don't have this folder, but you can create source folders. 通常,Java项目默认包含一个src文件夹,我不知道您的项目没有此文件夹的原因,但是您可以创建源文件夹。
In Eclipse, right click on the project and select New > Other. 在Eclipse中,右键单击该项目,然后选择“新建”>“其他”。 Then type source and create a new one with the name src.
然后键入source并创建一个名称为src的新文件。
In Eclipse, right click on the project and select New > Other. 在Eclipse中,右键单击该项目,然后选择“新建”>“其他”。 Then type source and create a new one with the name src.
然后键入source并创建一个名称为src的新文件。
Or 要么
Please select following menu 请选择以下菜单
File>menu>new java project 文件>菜单>新的Java项目
select From Projecy layout tab : create seperate folders for sources and class files 选择“从Projecy布局”选项卡:为源文件和类文件创建单独的文件夹
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.