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

How to run java program in dos

王林
Release: 2020-06-01 15:04:19
Original
2874 people have browsed it

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
Copy after login

How to run java program in dos

Then enter

java Test
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template