Home  >  Article  >  Java  >  How to run java in eclipse?

How to run java in eclipse?

青灯夜游
青灯夜游Original
2019-11-19 16:09:3812652browse

How to run java in eclipse?

Steps to run java program in eclipse:

1. Open the Eclipse development environment, then click the file menu item in the upper right corner and select New-->java Project option can be

How to run java in eclipse?

2. After entering the project name, the JDK default version can be

How to run java in eclipse?

Just click Finish (you can also select the next button and click FInish)

3. Create a new package and java file. Here is the basic structure of the project and the file content

How to run java in eclipse?

4. Enter the simplest output statement and click Save

How to run java in eclipse?

5. Right-click and double-click the file name and select run as --> ;java application option compiles and runs the java file

How to run java in eclipse?

Finally in the console, we can see the running results as shown in the figure, this is completed

How to run java in eclipse?

The above is the detailed content of How to run java in eclipse?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn