A text document to run Java

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/weixin_42110567/article/details/102483315

The premise is already installed and configured the jdk environment

1. The first written codes

2. Save as another suffix java file, the file name with the class name of the program, since the proposed location

3. Go to the folder where the file using the command line

4.javac the TEST1 (here for your file name) .java, generate a class file suffix

5.java the TEST1 (note that no suffix class)

Guess you like

Origin blog.csdn.net/weixin_42110567/article/details/102483315