Download JDK:
- Go to java.sun.com
- Click on Downloads > Java SE
- Click Download for JDK 6
- double click on the downloaded .exe file
- (click next, I agree, etc)
Setting Classpath:
- Right on My Computer
- Click on properties
- Click on Advanced System Settings
- Click on Environment variables
- Click on New under User Variables
- Type variable name as "Path"
- Type Variable Value as "C:\Program Files\Java\jdk1.6.0_12\bin" (or whatever it is on your machine)
- Click OK
- Click OK
- Open command prompt
- Type "javac" and hit enter
No comments:
Post a Comment