Write First Program and Installation testing in Java

Now we are going to write our first program , So just open any text editor or you can use Dreamweaver also to write Java program.

Step 1 : So just write this:

Now save this file with .java extension e.g. demo.java at any location/Folder. For example you save file in ‘D’ drive ‘java-test’ Folder ‘demo.java’. D:\java-test\demo.java

Step 2 : Now run ‘cmd’ : press window+R and type cmd and enter. Command prompt will open.

cmd
cmd-window

Step 3 : Now change folder location in cmd so java file can run so just type drive name e.g.
C:\Users\vipulrai>d:

Step 4 : Go to Folder ‘java-test’ in cmd

cmd-window-2

 

Previous    |     Next

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *