search
HomeJavaJavagetting StartedHow to run java files

How to run java files

Nov 11, 2019 am 09:34 AM
javadocumentrun

How to run java files

1. Prepare a jdk and copy the bin directory of the jdk, as shown in the figure below:

How to run java files

2. Then enter the PATH environment Add the JDK bin directory to the variable, as shown in the figure below:

How to run java files

3. Then write a java program, as shown in the figure below, just use Notepad

How to run java files

4. Then open the CMD command line and use the javac command to compile the java file, as shown below:

How to run java files

5. Finally Just use the java command to execute the compiled java file, as shown below:

How to run java files

Recommended tutorial: Java tutorial

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools