Monday, July 25, 2016

How To Run Java Programs in Cmd



How To Run Java Programs In Cmd

So you are having problem in running java programs from cmd .This tutorial will be teaching you How To Run Java Programs In Cmd . Many of you may have faced problems like this image




This is the problem that is common to many of them . To fix it all you need to do is set up the path in environment variables.

Step 1 >> Go to contol panel

Step 2 >> Search for environment variables.




after you searched for environment variables just click Edit the system environment variable then a popup will appear like this.



Click on Environment Variables again there is new popup.where you would be able to see user variables for Your username. just below you would see New.. click there .

Set the variable name to : -- path
Set the variable value to:-- javac path generally C:\Program Files\Java\jdk1.8.0_45\bin


it may differ from mine. save it and congratulations now you can run java programs from cmd.

CHEERS




No comments:

Post a Comment