Header Ads Widget

Responsive Advertisement

My First Simple Java Program

 First we need to install the (jdk) java development kit.

After installation (jdk) java development kit we need to setting of  environment setting.

Now start step by step  setting. 

1: First Local Disk C:


My First Simple Java Program
My First Simple Java Program

2: Step Two Open Folder Program Files.

My First Simple Java Program
My First Simple Java Program


3: Step Three Open Folder Java.

My First Simple Java Program
My First Simple Java Program


4:Step Four Open Folder jdk.

My First Simple Java Program
My First Simple Java Program


5:Step Five Open Folder bin.

My First Simple Java Program
My First Simple Java Program


6:Step Six Same as in This Image.

My First Simple Java Program
My First Simple Java Program


7: Step Seven Open The Computer Property After Click On Advanced System Settings.

My First Simple Java Program
My First Simple Java Program


8:Step Eight Open Environment Variables.

My First Simple Java Program
My First Simple Java Program


9:Step Nine Open New.

My First Simple Java Program
My First Simple Java Program


10: write down in Variable name textbox in (PATH)

and Variable value textbox in copy of directory Paste.

My First Simple Java Program
My First Simple Java Program


11:Step Eleven Click On "OK" Button.


12:Step Twelve Click On "OK" Button.


13:Step Thirteen Click On "OK" Button.


Write the simple java program Hello Word .

We write simple java programe Hello Word first installing jdk (Java Development Kit) for run java programs because we have need create class that content


class HelloWorld{

    public static void main (String args[]){

        System.out.println("Hello World");

    }

}

Now we save the file name "HelloWorld.java"

after then run this simple program on command screen.

now click on start button and and after than write in search bar 'cmd' and enter button.

now we write in commond directory file name foe example, local deck name.

D: and enter press.

than write the folder name.

cd programs and press enter button.

now compile the program

Compile:javac HelloWorld.java

Run: java HelloWorld

Now we see the result of this simple java program in commond screen.


My First Simple Java Program


Post a Comment

0 Comments