Install And Run Java


1:-Download JDK 1.6 [ what ever the version you want, its 1.6 the time i writing this article ] from www.oracle.com / any sharing sites, its just about 5060 Mb in size.

2:-Now just double click on this application and just follow the bellow steps…
3:-Click on Accept >
4:-Click on Next >
5:-Let is install >
6:-Now you will get one new window with title SE Runtime Environment 6, which is nothing but JRE, JDK needs JRE to be install first, so click Next
7:-Then finally it will show you one window with Finish button just click on that, and that’s it, let us see the class path settings….
8:-Its simple mates, just right click on My Computer Icon then choose Advanced system settings..
9:-click on that Advanced system settings then it will shows like..
10:-Now just click on Environment Variables button at bottom-right then…
11:-Then select path, and click on Edit button….
12:-Now there, just append your bin folder path of jdk folder,   in my system it is like…   c:\Program Files (x86)\Java\jdk1.0.6\bin;
 

13:-then
Add a new System variable
 14:-then give the variable name CLASSPATH
then give the variable value:-where u want to store ur java file
15:-then click ok button
then click ok
then open command prompt
and run your java program

16:-A simple java Program Demo


public class Hello {
public static void main(String argv[]) {
System.out.println("Hello world !");
}
}

then save this program to same class name 
like as:-Hello.java
And Compile this program

>javac Hello.java

if ur program is error free then it generates the byte code Hello.class
then run your program

>java Hello

then press enter 


Comments

Popular posts from this blog

How to configure Glowroot with Liferay

How to Get Back Asus Zenphone 5 from Soft Brick

How to Unlock Boot Loader of Htc Explorer