Saturday, December 19, 2009

Let's start with first simple "Hello World" program.......Opps!!!!! Before u start with the first java program you need to tell you system the you have d java program and u want it to run.... for that u need to download java virtual machine and have the class path set for it.
To download JVM go to http://java.sun.com/javase/downloads/index.jsp and download the latest version of the java virtual machine............install that and then set the class path...........
now lets see how to set the  class path......
1) right click on the my computer and select properties...
2)select advance system settings....
3)select environment variable tag.....
4)edit CLASS PATH variable and put the path to the bin directory at the end..... be sure to put the separator " ; " ex: .C:\apache-tomcat-6.0.18\lib\servlet-api.jar;C:\apache-tomcat-6.0.18\lib\jsp-api.jar;C:\apache-tomcat-6.0.18\lib\el-api.jar;C:\servlets+jsp;C:\Program Files\Java\jdk1.6.0_16\bin;

like the bold one on the above line.....

after that open the command prompt and type java and javac...... the command should have run otherwise u have made some mistake..........

Now all set for the first program..... Hello Java!!!

Friday, December 18, 2009

Hello every one....... This is the place where u can learn most of my experiences of java language.......will provide most of the examples and explanation......