Home  >  Article  >  Java  >  How to run java program in dos

How to run java program in dos

王林
王林Original
2020-06-01 15:04:192851browse

How to run java program in dos

Prerequisites:

Environment variables need to be configured

(Video tutorial recommendation: java video)

The specific method is as follows:

First enter the location of the java file that needs to be run, such as D:\test\Test.java

How to run java program in dos

and then enter

javac Test.java

How to run java program in dos

Then enter

java Test

in the dos box and the running results will be output.

Recommended tutorial: java entry program

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