![How does eclipse run java code?](https://img.php.cn/upload/article/000/000/052/5ee1e3030fd9f399.jpg)
How does eclipse run java code?
How eclipse runs java code:
1. First, let’s create a new project test.
![1591861185512319.png How does eclipse run java code?](https://img.php.cn/upload/image/296/507/600/1591861185512319.png)
2. Then write a main function in it
![1591861191540505.png How does eclipse run java code?](https://img.php.cn/upload/image/363/135/422/1591861191540505.png)
##3. Then write any output in the function
![1591861197681893.png How does eclipse run java code?](https://img.php.cn/upload/image/622/784/777/1591861197681893.png)
4. Right-click on the blank space and find Run As
![1591861215967058.png How does eclipse run java code?](https://img.php.cn/upload/image/510/250/162/1591861215967058.png)
5. Select the first java application
![1591861223360587.png How does eclipse run java code?](https://img.php.cn/upload/image/581/848/964/1591861223360587.png)
6. Finally you will see the output results displayed on the console.
![1591861230547838.png How does eclipse run java code?](https://img.php.cn/upload/image/941/787/981/1591861230547838.png)
7. If the console does not have a console, you can click window -> Show View -> Console to display the console
![1591861237679484.png How does eclipse run java code?](https://img.php.cn/upload/image/785/808/902/1591861237679484.png)
Recommended tutorial: "
java"
The above is the detailed content of How does eclipse run java code?. 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