Eclipse is an open source, Java-based extensible development platform. On its own, it's just a framework and set of services for building a development environment through plugin components. Fortunately, Eclipse comes with a standard set of plug-ins, including the Java Development Kit (JDK).
IDE (Integrated Development Environment): can automatically compile (save to compile), code prompts. (Eclipse can also be used as an IDE for other development languages, such as C, C++, PHP, and Ruby, etc.)
About eclipse workspace:
Multiple workspaces can be created in Eclipse, and each workspace can create multiple projects
A workspace is a set of configuration information. After the workspace is switched, the configuration of the previous workspace will not take effect.
The program is developed in the project.
How to use ecli
- Create a folder locally as the default workspace;
- Create java project;
- Create a new class file in src;
- To run the program, right-click "run as" -> "java application" in the class file.
The menu bar viewed by Eclipse usually contains the following menus:
File menu
Edit menu
Navigate menu
Search menu
Project menu
Run menu
Window menu
Help menu
The Java build path is used to find dependent classes when compiling a Java project, including the following:
- source package
- Project-related jar packages and class files
- Class libraries referenced by the project
The Arguments items are:
- Program arguments can be zero or more
- VM arguments (Virtual Machine arguments: virtual machine arguments) can be 0 or more ''
How to run java program:
We can view it in Package Explorer
可以在 Package Explorer 视图中快速运行 Java 程序。
Package Explorer 视图:
鼠标右击包含 main 函数的 java 类选择 Run As > Java Application
同样你也可以在 Package Explorer 视图中选择包含 main 方法的类并按下快捷键: Alt + Shift + X, J
以下两种方式都能创建一个新的 Run Configuration(运行配置) 我们可以使用它来启动 Java 应用程序。
如果运行配置已经创建,你可以在 Run 菜单中选择 Run Configurations 来启动 Java应用,点击运行配置的名称,然后点击运行按钮的Java应用程序。
Eclipse 系统内部自带了浏览器,该浏览器可以通过点击 Window 菜单并选择 Show View > Other,在弹出来的对话框的搜索栏中输入 "browser"。
在树形菜单中选择 "Internal Web Browser" 并点击 OK。
在内置浏览器中我们在地址栏中输入网址,如:http://www.w3cschool.cc,即可打开网页。