Installing JAVA AND Setting CLASS PATH
- Install jdk 7.4(latest version) or any other lower version.
- Set the class path for running the java program..
- Left click the my computer option.
- Click on the properties.
- Click on system properties.
- Click on advanced.
- Click on environment variable.
- Two different sections will be shown from lower section select “path” and click on edit
- Open the location where jdk was installed and go inside bin. (“C:\Program Files\Java\jdk1.7.0_04\bin”).
- Copy the address and paste it into variable value but be careful not to delete previous entries and put”;”.
- Press OK.
After following these steps only you would be able to run a java program written in a simple text editor ,using dos comrade.
There are various other also various user friendly application which serves as a handy tool (net beans) in creating a java program and compiling it and running it without going through above stated points.
But as a beginner users are advised to create the program in notepad or any other text editors and compile them and run them through DOS. It will help in understanding java concept clearly.
Compiling and running a java program after the class path is set will be discussed in next post.....
0 comments:
Post a Comment