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
2. After entering the project name, the JDK default version can be
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
4. Enter the simplest output statement and click Save
5. Right-click and double-click the file name and select run as --> ;java application option compiles and runs the java file
Finally in the console, we can see the running results as shown in the figure, this is completed
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!