Powered by Blogger.

Lesson 3: Downloading and Installing Eclipse

Why learn Java with Eclipse?
Today there are many ways to learn Java. There are number of IDE's available for free but i believe that there are some advantages of learning Java with eclipse. Some of these are:

  • If you want to do software development in future than obviously you will have to learn some integerated development environment. So learning Eclipse from the start will help you in future.
  • Eclipse provides full support for agile software development model. 
  • The debugger and scrapbook provided in Eclipse will help you to look into the execution of the java code.
  • Different aids provided in Eclipse will help you in writing and understanding the code very fast. I recommend you to use Eclipse instead of a simple text editor because using text editor you have to look up the documentation again and again. This will consume your time and you will spend less time in learning Java. So Eclipse also help you in saving this time and spending more time in learning the language.

Downloading and installing Eclipse
Before installing Eclipse, you need to have either the Java JDK ( Java Development Kit) or Java JRE (Java Runtime Environment) installed on your computer . Java JDK and JRE are available at
  • http://www.oracle.com/technetwork/java/javase/downloads/index.html

Java JRE / JDK installation help : Step by Step instruction for intalling Java JRE/SDK
I recommend to download Java JDK because it allows you to see documentation of Java standard classes.
Go to http://eclipse.org and click on Download Eclipse.
Click on Eclipse for Java Developer and choose 32bit or 64bit version according to your system. 
The Eclipse installation is very straightforward. There is no installation program. Instead, just create a folder in top level directory of C: drive and extract the downloaded zip file into this directory.
Below is a step by step installation guide with screenshots




Lesson 2 : Setting up enivronment

Environment Setup on Your Local Computer
If you want to setup Java Development Environment on you local computer, then this section will guides you on how to download and setup Java on your manchine. Follow the instruction carefully :

First of all download Java SE Java which is freely available at Download Java SE . Choose the download version according to your operating system.
Link : Java SE 8 Archive Downloads
Now follow the instructions and run the .exe file you downloaded earlier. This will install Java SE on your machine. After that you have to set up environment variable on your machine.

Setting Up the Environment Variable on Windows 8 
I am assuming that your installation directory is c:\Program Files\java\jdk
Go to the Control Panel using the metro UI of Window 8.


Click More Setting in Control  on the left side.

Now search Environment Variables in Control Panel, and click Edit the system environment variables 



Click on Environment Variables



Under System Variables scroll down to the Path Variable. Select Path and click on Edit button.



On my computer the path of the bin folder of the JDK is C:\Program Files\Java\jdk1.7.0_02\bin
So I add  ;C:\Program Files\Java\jdk1.7.0_02\bin  in the path string.
Note : Don't forget to add ";" in the start of the above string.


So far so good. Click OK to finish. Now your machine is loaded with java. To check whether Java Developement Kit is installed with correct path variable, run command prompt on the machine and type the following command
javac -version
If you get the java version as shown below then you are successful.




Lesson 1 : Java History

Java was designed by Sun MicroSystems in early 1990's. Before the invention of Java , C and C++ were the dominant player in the market.
The main objective before the developers of Java language was to design and develop such a programming language which can tackle most of the things that C++ offered while getting rid of some tasks which seem to be tedious in the previous languages.

Another main objective was to solve the problem of connectivity between different type of devices. Earlier name of Java was OAK. But meanwhile another language with the same name was being developed by some other vendor so the name was change to JAVA in 1994. James Gosling is known as the creator of the Java Language. Java was publicly released on May 27, 1995.
Courtesy to (http://javatutorial-for-beginners.blogspot.com)