How to execute the Java programs in CMD in windows 8
- Mahesh Bhat
- Jul 8, 2017
- 1 min read
Watch this Video :
To execute java program :
Download and install the latest version of the Java Platform,
Select Start -> Computer -> System Properties -> Advanced system Settings -> Environment Variables -> System variables -> PATH.
Prepare C:\Program Files\Java\jdk1.6.0_27\bin; to the beginning of the PATH variable.
Open the CMD ( by window + R then type CMD )
change the directory to java folder ( where u will save the typed programs )
Complie the program by JAVAC FILENAME . JAVA
if any error is their it will show or else
Type JAVA FILE-NAME for execution of the program
U will see the output
ความคิดเห็น