Today You will learn :
- How to set environment variable for Java
- How to Run Java from Command Prompt
- How to Compile Java code from Command Prompt
Before Starting You must check if JDK is installed if not download install it from oracle's official website.
Lets get Started :
- Click Advanced System Settings under Computer Properties
- Click Environment Variables
- Create a New one with the name path
- Go to the bin in the JDK installation directory and copy the path
- Now paste this path as the Variable Value and click ok
Check :
- Open Command Prompt
- Type javac and press enter
- Alot of junk will Appear below
0 comments:
Post a Comment