Write, save, compile and run simple java program in command prompt.
step 1
open notepad.
step 2
write any code for java program.
save with java format in bin folder of jdk.
step 3
open cmd and go to bin folder.
step 4
use javac command to compile java file
after compilation class file will be created.
step 5
use java command to run java program(class file).
keep visiting www.h-programmer.blogspot.com for more interesting posts.
thank you.
step 1
open notepad.
step 2
write any code for java program.
save with java format in bin folder of jdk.
step 3
open cmd and go to bin folder.
step 4
use javac command to compile java file
after compilation class file will be created.
step 5
use java command to run java program(class file).
keep visiting www.h-programmer.blogspot.com for more interesting posts.
thank you.
java by Hamayun Aziz
No comments:
Post a Comment