Learn To Install Java Development Kit, setting environment variables and getting started
Requirements :
Steps :
Install jdk :
- Double click on jdk installation kit -> below page open -> next
- Select Development tools -> next
- Select destination folder
- Close
- Then comes the most important part, that is setting up environment variables, in which most of the people face problems.
Setting up environment variables -
- C drive -> Program files -> java -> jdk folder -> bin
- Find here -> javac file -> right click on it -> properties -> copy the path
- my computers -> right click -> properties -> advance system settings -> advance -> environment variables
- Click on path in system variables panel
- Below frame will open up -> click in the variable value text field -> bring the cursor to the end of the text -> type a semicolon -> paste the copied path of javac file -> click okay in all frames
- Restart your computer.
To check java installed and working on your PC -
- Open command prompt -> type -> javac -> enter
- If below output shown -> it means its working properly
- Now you may start with writing java programs (through simple command prompt method).
Writing Java programs -
- Write java code in a notepad file -> save with .java extension.
- Open command prompt
- change the directory to the path of the java file you created in notepad -> type -> cd <directory path>
No comments:
Post a Comment