Home >Java >Javagetting Started >How to save java program?

How to save java program?

藏色散人
藏色散人Original
2019-11-14 10:14:1715856browse

How to save java program?

#How to save java program?

How to export, save and run the written JAVA program

1. First, you need to write a "hello, good afternoon" program in Notepad.

How to save java program?

#2. After writing is completed, save the file and change the file name to the same as the class name.

How to save java program?

#3. Change the file format from .txt to .java file.

How to save java program?

#4. After the changes are completed, open the cmd command (wins R).

How to save java program?

#5. Enter javac. If many things appear below, it means that the environment variables have been configured successfully. Otherwise, you need to configure the environment variables.

How to save java program?

#6. Find the location of the .java file and find it in cmd (D drive).

How to save java program?

7. Enter the folder where the .java file is located in cmd, enter javac class name.java, and the same name will appear where the .java file exists. class file.

How to save java program?

#8. Enter the java class name, and the .java file will be run and "hello, good afternoon" will be output.

How to save java program?

The above is the detailed content of How to save java program?. 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