Use Notepad to run java program

Use Notepad to run java program

1. Create a text file HelloWorld.java.
2.public class name consistent with the name of the text file is created.
Here Insert Picture Description
3.win + r cmd into the command line
4 into the file path HelloWorld.java
5.javac HelloWorld.java // compiler
6.java HelloWorld // run the executable .class
Here Insert Picture Description

Released seven original articles · won praise 0 · Views 113

Guess you like

Origin blog.csdn.net/flyorfly/article/details/105289579