Java Eclipse 中的 src 是什么意思?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2643038/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 14:37:44  来源:igfitidea点击:

What is meant by src in Java Eclipse?

javaeclipse

提问by ashok

What is meant by the src in Eclipse IDE?

Eclipse IDE 中的 src 是什么意思?

Also what are all the default packages/components/classes created by the eclipse IDE for us?

Eclipse IDE 为我们创建的所有默认包/组件/类是什么?

回答by Michael Mrozek

You mean the srcfolder? It's short for "source", it's where the source code files are stored. When it compiles it stores the class files in bin

你是说src文件夹?它是“source”的缩写,它是存储源代码文件的地方。当它编译时,它将类文件存储在bin

回答by Stephen C

The word 'src' is a common abbreviation for 'source' ... e.g. a project's source code.

“src”这个词是“source”的常用缩写……例如一个项目的源代码。

In an Eclipse project 'src' is a common default folder name for a project's source code ... though it depends on how the Eclipse project was created or instantiated. For example, the 'src' name in a Maven-based project comes from the default Maven project structure.

在 Eclipse 项目中,“src”是项目源代码的常见默认文件夹名称……尽管它取决于 Eclipse 项目的创建或实例化方式。例如,基于 Maven 的项目中的 'src' 名称来自默认的 Maven 项目结构。

Also what are all the default packages/components/classes created by the eclipse IDE for us?

Eclipse IDE 为我们创建的所有默认包/组件/类是什么?

For a typical Eclipse project, Eclipse does not create any default packages, components or classes. Some non-generic Eclipse project creation wizards may generate stuff, but it doesn't make sense to enumerate all possible behaviors of all possible wizards. Check the documentation for the wizard you are using ...

对于典型的 Eclipse 项目,Eclipse 不会创建任何默认包、组件或类。一些非通用的 Eclipse 项目创建向导可能会生成一些东西,但是枚举所有可能的向导的所有可能的行为是没有意义的。检查您正在使用的向导的文档...