Home > Java > Javagetting Started > body text

How java files are run

王林
Release: 2019-11-21 16:28:31
Original
6017 people have browsed it

How java files are run

First you need to prepare a jdk and copy the bin directory of the jdk, as shown below:

How java files are run

Then set the PATH environment variable Add the bin directory of the JDK, as shown in the following figure:

How java files are run

Open the CMD command line, and use the javac command to compile the java file, as shown in the following figure:

How java files are run

Finally, use the java command to execute the compiled java file, as shown in the figure below:

How java files are run

Complete!

Recommended tutorial: Getting started with java development

The above is the detailed content of How java files are run. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!