Well known factor for Java developers, but you may find difficult to do this as a newbie. So here we go...
1. Download Java and install it on your computer.
2. Set CLASS PATH is the basic step you have to do immediately after you done with installation. Follow the steps to set CLASS PATH.
NOTE: If the computer that use to develop/study java is a domain computer with a user account which does not carry administrator privileges, you may not successful in following below steps. For that set the CLASS PATH as shown below for each every compilation you do using COMMAND PROMPT.
STEP 1 - Right click on My Computer and select Properties and then go to Advance system settings in the left panel of the window. You will get the following window.
STEP 2 - Click on Environment Variable button and you will see the below window. Select the button rounded in red.
STEP 3 - Go to the destination folder of your JAVA installation and locate bin folder. In my case it is as follows:
C:\Program Files\Java\jdk1.7.0_25\bin
copy the file path and add new variable as shown in the following screen shot.
Click on OK button for all the opened windows and go back to COMMAND PROMPT.
STEP4 - type javac and if you get the result like follows in your command prompt then your have successfully setup the CLASS PATH:
1. Download Java and install it on your computer.
2. Set CLASS PATH is the basic step you have to do immediately after you done with installation. Follow the steps to set CLASS PATH.
NOTE: If the computer that use to develop/study java is a domain computer with a user account which does not carry administrator privileges, you may not successful in following below steps. For that set the CLASS PATH as shown below for each every compilation you do using COMMAND PROMPT.
STEP 1 - Right click on My Computer and select Properties and then go to Advance system settings in the left panel of the window. You will get the following window.
STEP 3 - Go to the destination folder of your JAVA installation and locate bin folder. In my case it is as follows:
C:\Program Files\Java\jdk1.7.0_25\bin
copy the file path and add new variable as shown in the following screen shot.
STEP4 - type javac and if you get the result like follows in your command prompt then your have successfully setup the CLASS PATH:




