View RSS Feed

Eclipse IDE

  1. Adding External Jars in Eclipse

    by , 02-11-2012 at 06:46 PM
    There are 2 methods to add external jars in your Eclipse.

    Method 1

    Following steps explains this method.
    • Select your project and right Click. Select “Build Path”
    • Select “Configure Build Path”. It will open project properties.
    • Click “Add Variables”
    • Click new and type name of the new variable.
    • Select folder containing your jar for the path.
    • Click “Ok”

    Method 2

    • Right click your project. ...
    Tags: eclipse, jars Add / Edit Tags
  2. Converting a CVS Module into an Eclipse Java Project

    by , 02-11-2012 at 06:44 PM
    Follow these steps to convert a CVS module into an Eclipse Java Project.

    • Checkout your CVS module.
    • Launch your Eclipse
    • Select “New Project” -> “Java Project”
    • Enter the project name
    • Uncheck “Use Default” check box and select your CVS module directory
    • Click “Finish”
    • After completing above process, Eclipse will create “.project” and ”.classpath” files in your CVS module directory
    • Configure your “Java Build” path for ...
    Tags: cvs, eclipse Add / Edit Tags
  3. Eclipse – Convert Project Type

    by , 02-11-2012 at 06:42 PM
    It is not an easy job to change the project type in Eclipse, once it is created. For example, if you want to convert a simple java project to a dynamic web project. In this case, you cannot take benefits of web project perspective like web servers etc. In such situation, you might want to convert this project to a dynamic web project. To perform this type change, you need to change the project settings.

    In a case where you want to convert a Java Project, open “Resource” perspective ...
  4. JD-Eclipse

    by , 02-11-2012 at 06:41 PM
    If you want to see all of your java sources in debugging process even if you do not have them then use “JD-Eclipse plug-in” for your Eclipse platform. JD-Eclipse is a free plug-in for any non commercial purposes. So you can use it in any commercial software products. This plug-in can be used freely for your personal need in any commercial or non commercial environments.

    Name:  1.JPG
Views: 683
Size:  26.9 KB

    JD-Eclipse plug-in

    Following platforms are supported ...
    Tags: jd-eclipse Add / Edit Tags
  5. File I/O in eclipse

    by , 02-11-2012 at 06:38 PM
    In this section, we will explain the File I/O process in which your program will read from a text file and write to a text file. Following steps explains this process.

    • Create a new Java Program in your Eclipse.
    • Write the following lines of code into your Java Program.
    • Compile and run the Java Program.
    • It will read from a file and write it to another file.

    Java Code: This is the code to read and write a file
    class FileRead 
     public static void
    Eclipse Files
  6. Eclipse General Usage Tips

    by , 02-11-2012 at 04:54 PM
    In this section, we will discuss some generic useful tips.
    • Double click to maximize window: You can maximize or restore a panel by double clicking its header.
    • Shorthand Templates: Shorthand typing is supported in Eclipse. Type the first few characters of any command and press ctrl+space and it will show you the related complete commands. It helps you in finding useful commands, help and speed up your development.
    • Intelli-Sense: Press ctrl-space to activate the intelli-sense. It
    Tags: eclipse tips Add / Edit Tags
    Eclipse Examples
  7. Eclipse Debugging

    by , 02-11-2012 at 04:08 PM
    Debugging a program is very important in programming. It helps you in find errors and saves lot of time. In the following steps, we will create and debug a Java Program.

    1. Write a Java Program

    Write a program that computes the factorial of a number n. This program should have an error and gives wrong output. We will debug this program to find the error.

    2. Set Breakpoint

    Name:  1.JPG
Views: 204
Size:  20.9 KB

    Break Points

  8. Writing Your First Java Program in Eclipse

    by , 02-11-2012 at 04:03 PM
    Follow these steps to write your first Java program in Eclipse.

    1. Launch Eclipse

    • Click on “eclipse.exe” is the installation director of Eclipse.
    • Select a folder for your workspace.
    • Close the “welcome” screen.

    2. Create New Java Project

    For new application, you will create a new project to keep the entire related source and other files. To create a new Java project follows these steps.

    • Choose New from ...