How to Compile and Run Java Programs using Command Prompt

preview_player
Показать описание

In this video, we will discuss How to Compile and Run Java Programs using Command Prompt. Before this, you must install Java JDK on your Windows 10 computer.

To check whether you have Java installed or not open “Command Prompt” and types the following commands:

java -version

javac

You’ll get your Java, build and version number.

Now let’s see how you can run Java programs using Command prompt.

Step 1: Navigate to the directory where you have saved your Java program. You can do it by using this command “cd dirextory_name“

Step 3: To run this java class file use this command “java file_name“.

These ways you can run Java programs using Windows Command Prompt.

Official Websites 👇

Share, Support, Subscribe!!!
Рекомендации по теме
Комментарии
Автор

please put link to java jdk and jre
download

hshsjwjhs