Archive for April, 2014

Ant Installation & Configuration



At the time of this post, the latest stable version available form Apache is 1.7. Older releases of Ant can be found here. Old releases are only provided as zip archives that can be extracted by jar xf Its highly recommend to not use old releases but upgrade to Ant’s latest release.

Ant 1.5.4 is the last release that supports JDK 1.1, Ant 1.6.0 onwards requires JDK 1.2 or later. There will be no other compatibility issues with Java versions otherwise. Current version of Ant i.e., 1.7, requires JDK version 1.2 or later, 1.5 or later is strongly recommended. Latest the version of Java is, the more Ant tasks you get. If a JDK is not present, and only JRE is present, then many tasks will not work.


Follow the steps below to download, install and configure Ant : Read more…

Exercise 1 – Using if and if else in Java



Exercise – 1 for module 1 of Using operators and decision constructs:


This post has the exercise – 1 for module 1 of Using operators and decision constructs . Let’s practice what we have learnt. Before practicing the exercise, follow the instructions below which will give you a step-by-step instruction:



You can download the source code ( for this exercise from the Box widget in the sidebar. Follow the video tutorial below if you ever get stuck while executing the programs. Read more…

Eclipse IDE Installation & Configuration

April 4, 2014 2 comments



At the time of this post, the latest Eclipse package version available to download is Eclipse 3.5.0. Eclipse releases are named after the moons of Jupiter, and each denotes a successive release. For Ex, Galileo is 3.5 which is the latest version, previous versions are Eclipse Ganymede which is Eclipse Version 3.4.0, and Eclipse Europa which is Eclipse Version 3.3.0. Eclipse is free for downloading. All you have to do is navigate to , chose and download the Eclipse package suitable for your requirements from one of the download mirrors available, such as:

  • Eclipse Classic 3.5.0 (The classic Eclipse download includes the Eclipse Platform, Java Development Tools, and Plug-in Development Environment, including source and both user and programmer documentation.)
  • Eclipse IDE for Java Developers (The essential tools for any Java developer, including a Java IDE, a CVS client, XML Editor and Mylyn)
  • Eclipse IDE for Java EE Developers (If you want to develop web applications, you should download Eclipse IDE for Java EE DevelopersTools for Java developers creating Java EE and Web applications, including a Java IDE, tools for Java EE, JPA, JSF, Mylyn and others.)
  • Eclipse packages for PHP, C/C++ Developers, etc.



Since Eclipse is a Java program, you will need to have Java installed on your computer to run Eclipse [Refer to Java Installation & Configuration post for details]. Eclipse can run on a number of Java Virtual Machines. Eclipse officially recommends Java version 5 (also known as 1.5), although many Eclipse users use the newer version 6 (1.6).

Sun’s Java is available in two main distributions: the Java Runtime Engine (JRE) and the Java Development Kit (JDK). If you are using Eclipse for Java development, the JDK offers several advantages, including the availability of source code for the Java classes. If you are using Eclipse for something other than Java development, the JRE is all you need. Once you have a Java VM installed, you’re ready to work with Eclipse.


Download Instructions:  Read more…