How to create and run Java program using CMD from open cd 2 file Watch Video
Preview(s):
Gallery
Play Video: (Note: The default playback of the video is HD VERSION. If your browser is buffering the video slowly, please play the REGULAR MP4 VERSION or Open The Video below for better experience. Thank you!)
Description: Step 1: Open any text editor.nnStep 2: Write code.nnStep 3: Save the program as ClassName.java and note the directory of ClassName.java file.nnStep 4: Open CMD: Press WinKey+R, then write cmd and press EnterKey.nnStep 5: Write Command: set path=%path%;path of Java jdk bin, then Press EnterKey.nnStep 6: Write Command: cd directory of ClassName.java file Press EnterKey.nnStep 7: Write Command: javac ClassName.java Press EnterKey.nnStep 8: Write Command: java ClassName Press EnterKey.nnStep 9: Done
Play Video: (Note: The default playback of the video is HD VERSION. If your browser is buffering the video slowly, please play the REGULAR MP4 VERSION or Open The Video below for better experience. Thank you!)