Sunday, 3 November 2013

Java - The most powerful language

Java is an object-oriented network/internet programming language.  It was developed by James Gosling in the year 1991 at Sun Microsystem (later acquired by Oracle Corporation) .  Earlier name of Java is OAK which was named after an oak tree stood outside Gosling's office.  Later it was renamed to Java which means a type of coffee bean.
One of the Java's features which makes the language very popular is platform independent (architectural neutral ).  This means program written with Java can run on any kind of machine, which leads to a quote "Write Once, Run Anywhere". This feature is achieved because of Java Virtual Machine (JVM). JVM takes compiled version of java program called Java Bytecode which is independent of a machine being used  and interprets it. While in other languages, compiling process produces a machine code which depends on machine architecture. Besides, Java also has features like robust, portability, multithreading, and so on.
First version of Java was released in 1996 and several changes like addition of numerous classes and packages to its library has made over it through number of releases.

Installing of Java:

You can download latest version of JDK (Java Development Toolkit) from Oracle website.(click here for download page)
Installing procedure will be as follows.
 In above, you can also specify where to install the Java by checking change destination folder. (Default folder is C:\Program Files\)



 After installing, you will find the folders as below:

Setting the path for Java:

Even after you have finished installation process successfully, the following error will be shown if you try to compile your first program.

This is because your computer will not able to find Java compiler (javac command). This can be solved by setting path of java. There are two possible ways for setting path. Before that, you need to copy the path of javac.
Go to C:\Program Files\Java\
Open jdk folder and then bin folder.
At there, you will find javac.exe.

Note: If javac.exe is not at there, java did not install correctly. Please reinstall the Java.
Copy the path from address bar or from the Properties of javac.exe.

Way 1:

Right click My computer, then click Properties, then go to Advanced settings.

Click Environment variables.

In System variables, select Path field and click Edit.
At the end of Variable value field, paste the copied path followed by a semicolon.

Note: Don't delete the existing values in that field. If done, it will cause some failures in your computer. 

Way 2 (Using cmd):

Open Command Prompt.
Type "path=" (without quotes) and paste the copied path and then press Enter.
                                     
Now, Java is ready.

 Enjoy the programming...


4 comments:

Thiruvarur Online Maligai said...

Super da..... very nice....

Baranidharan Nagarajan said...

Awesome man

Unknown said...

Hey...really very sweet and superb....keep going....:-)

Unknown said...

From the preson who has passion towards Java, so no doubt in it...really its lovable... Keep Rocking Lovable...

Post a Comment