How to set environment variable or path for java
In this section, you will know, how to set path for java. Before running your application, you needed to set path for java.
Following steps for Set java environment variable:
Step 1: Select My Computer and right clicked on that.
Step 2: select Properties and clicked on then open following Dialog box:
Step 3: Select Advanced Setting System and clicked on that
Step 4: Select Advance tab and clicked on Enviroment variables:
Step 5: If java path not Set in Enviroments variables window then you are select New
Step 6: Set java path in New user variable window. Write variable name like PATH
Step 7: Choose the java path where have. Copy and Past Java path (C:\Program Files\Java\jdk1.6.0_12\bin ) in variable Value with semicolon like ;
Step 8: Click Ok button.
Step 9: Clicked on Apply button.
Step 10. Now java path is Set on your system. To check your set java path in you system with follwoing cmd.(select->start->click Run and write cmd) write javac