Youtube Channel

Java first Porgram and ClassPath Settings

1.First u open notepad and write program like.
  

Then
2.Go in D Drive and create new file name as myjava
3.saveas  D drive in myjava folder name as same name of class name  “ HelloWorld.java”  
suppose we save the program in D: \myjava 
Then
4.open command prompt like

And then write
And press Enter key
Then  write cd <file name>
Then press Enter key
Then set path
Press Enter
Then set classpath
Then press Enter
And compile the java program like
And press Enter
Then run the program like
Press Enter key and enjoy the first program in java

 


Next PostNewer Post Previous PostOlder Post Home