View RSS Feed

Recent Blogs Posts

  1. Working with SVN in Eclipse

    by , 02-29-2012 at 12:26 PM
    In a team work environment, using a version control system has been becoming standard approach to foster collaboration among team members, increase productivity, centralize resources management, reduce risks and development time…Subversion (SVN) is a version control system which is very popular and widely used in software development, and Subclipse is an Eclipse plug-in that supports Subversion within the Eclipses IDE. Subclipse has been widely used to develop Java projects in Eclipse IDE for team-oriented ...
  2. 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
  3. 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
  4. 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 ...
  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. 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 ...
  7. Create new Form in Eclipse

    by , 02-11-2012 at 03:59 PM
    Click the JFormDesigner button in toolbar of Eclipse. Also it can be initiated using following short keys.
    • For Windows (Ctrl+Shift+V)
    • For Mac (Shift+Command+V)

    To create a new form using Eclipse’s Package Explorer, select destination folder and right click. It will open following dialog box.

    Name:  1.JPG
Views: 9742
Size:  52.8 KB

    Create new Form in Eclipse
    Tags: eclipse, new form Add / Edit Tags
    Eclipse GUI
  8. Benefits of using Eclipse Plug-ins

    by , 02-11-2012 at 03:56 PM
    Eclipse Plug-ins provides following benefits as compared to other development environments.

    • Integrated editor to create and design in Eclipse.
    • It uses current project’s source folders and classpath.
    • When you make changes in design, it changes in code accordingly.
    • In Java editor, you can fold generated Java code.
    • In Java editor, you can navigate to event handlers.
    • Strings in designer and properties file have two way synchronization. ...
  9. Conditional breakpoints in Eclipse

    by , 02-11-2012 at 03:55 PM
    To debug a Java Program in Eclipse, it allow to setup “conditional break points”. Conditional break points are based on conditions. Your debugging thread will stop when the specified condition is matched at the break point line.

    To setup a new conditional break point follow these steps.

    • Double click on the required line in your code on which you are interested to setup break point.
    • Right click -> Properties -> Insert condition.

    The ...
    Eclipse Debug
  10. Increasing Eclipse Memory’s setting for Android Project

    by , 02-11-2012 at 03:49 PM
    The Android project has a large size and it causes memory issues while compiling this project. To avoid such memory issues, increase memory size. To increase the memory size, edit “eclipse.ini” file. This file is located at following location:

    Java Code:
    Default memory parameters are as shown below.

    Java Code:
    Following ...
  11. Eclipse Remote Debugging

    by , 02-11-2012 at 03:46 PM
    Follow these steps to set up remote debugging in Eclipse.

    • Open your java project.
    • Select project.
    • Click Run -> Debug Configurations as shown below.

    Name:  1.JPG
Views: 654
Size:  12.5 KB

    Debug Configurations

    • A new dialog box will open with different configuration options. Select “Remote Java Application as shown below.

    Name:  1.JPG
Views: 684
Size:  19.2 KB

    Debug Configurations Option with Remote Java

    Updated 02-11-2012 at 04:50 PM by Eclipse

    Eclipse Remote
  12. Eclipse Memory Analyzer (MAT)

    by , 02-11-2012 at 03:41 PM
    Eclipse Memory analyzer (MAT) is used to analyze memory leaks in your application. If an object has no reference, it is released by Java Garbage Collector. In a situation you get OutOfMemoryError, you can instruct Java Virtual Machine to create heap dump. The Eclipse Memory Analyzer provides a visual image of Java heap dump and helps to identify memory leaks. Use the following command to guide JVM to create a heapdump.


    Name:  1.JPG
Views: 844
Size:  36.0 KB
  13. Installing Eclipse Plug-ins

    by , 02-11-2012 at 03:38 PM
    Eclipse is an extendible integrated development environment, which is open source platform and supports integration of new plug-ins. Eclipse supports building of new tools that can be integrated with it. Other than core runtime environment, everything in Eclipse is a plug-in. All the plug-ins are developed and integrated in almost same way.

    In this section, we will discuss on installing an Eclipse plug-in. below image shows the Eclipse SDK folder.

    Name:  1.JPG
Views: 726
Size:  4.9 KB

    Updated 02-11-2012 at 04:46 PM by Eclipse

    Eclipse Plugin , Eclipse Install
  14. Eclipse Plug-in Deployment

    by , 02-11-2012 at 03:33 PM
    To deploy an Eclipse plug-in, deploy following into Eclipse intallation’s plug-in folder.

    • Manifest File
    • Jar Files
    • Any other resources

    Now Eclipse can activate this plug-in when it is required to perform some functionality. To activate a plug-in:

    • Load runtime class
    • Instantiate it
    • Initialize it

    Plug-in class is responsible for doing special tasks like allocation and reallocation of resources. For some ...
  15. The Eclipse Plug-in Model

    by , 02-11-2012 at 03:31 PM
    Plug-in is a component that supports a particular service or functionality in the Eclipse workbench. This component can be integrated into system at deployment time. Eclipse supports a wide variety of these plug-ins that can work together to support an environment for development. A plug-in in Eclipse is embodied in plug-in runtime class instance. This class provides some configuration functionality for the plug-in instance. A plug-in class must extend org.eclipse.core.runtime.Plugin which is an ...
  16. What is Eclipse?

    by , 02-11-2012 at 03:22 PM
    Eclipse is an integrated development environment (IDE) that provides a software development environment and supports plug-ins. Eclipse is developed mostly in Java and it is used to develop Java applications with the help of plug-ins. Eclipse is also know as Eclipse ADT(Ada Development Toolkit) for Ada, for C/C++ it is called CDT, for Java it is called JDT and for PHP it is called PDT.

    It is released under Eclipse Public License; it is open source and free software. Below figure shows ...
    Tags: eclipse Add / Edit Tags
    Eclipse Framework
  17. Building and Running Android Application from Eclipse with ADT

    by , 02-11-2012 at 12:09 PM
    Details of the build process are hidden when using Eclipse and ADT. Build process in running continuously in background and automatically build application when you make changes to code. Following topics will explain how to run application.

    Running on the emulator

    Create an AVD when you are running your application on the Android Emulator. Follow these steps to run your application

    • From Eclipse menu bar select Run > Run (or Run > Debug) from the ...
  18. Start writing a plug-in for Eclipse

    by , 02-06-2012 at 06:13 AM
    The Eclipse IDE has an open architecture which allows third party developers to extend or add new functionalities to the Eclipse’s core platform. This architecture follows the OSGi framework which is a specification for application and component life cycle management.

    This article will guide you to develop a sample plug-in from creating fundamental blocks to testing and installing as a feature to the IDE. The version of Eclipse targeted by this article is the 3.7 (Indigo).
  19. Using WindowBuilder to design GUI in Eclipse

    by , 02-06-2012 at 04:57 AM
    WindowBuilder is a great Eclipse plug-in that allows developers to visually design graphical user interface (GUI) for Java applications. It supports developing both Swing and SWT applications. In addition, it also supports Google Web Toolkit (GWT) and XML Windowing Toolkit (XWT). This article introduces this plug-in to Java developers about installation and working within Eclipse IDE environment.

    Install WindowBuilder plug-in

    WindowBuilder is already integrated into ...
  20. Working with databases in Eclipse using QuantumDB

    by , 02-05-2012 at 01:32 PM
    Database is an important part of a software program. There are a number of tools/editors for popular RMDBS such as MySQL Query Browser, SQL Server Management Studio, TOAD… for database administrators and/or developers. For those who are working with Java and database using Eclipse IDE, a plug-in for database integrated in an IDE would be a necessary tool, and QuantumDB is such a plug-in. It is easy to setup and helps developers working with the most popular database systems smoothly.
  21. Using custom Ant build script for Eclipse projects

    by , 02-05-2012 at 06:25 AM
    Ant is XML-based script for building Java applications. Ant is popularly used in Java development because of its powerful and flexibility. It makes developer’s life easier by automatically processing repetitive tasks that happen before, during and after building of Java applications. Eclipse is a great IDE which supports Ant by integrating Ant’s libraries as its plug-in.

    Generally, you may not deal with any Ant script during development of a Java project in Eclipse. However if your ...
    Tags: ant, eclipse Add / Edit Tags
    Eclipse Ant
  22. Working with Java Servlets in Eclipse

    by , 02-04-2012 at 06:56 PM
    Servlet is a Java program that runs on a web server to handle requests and returns response to clients. It is widely used for Java enterprise development, and Eclipse is one of the best IDE for Java development. So this article will walk you through a Java project using Eclipse IDE to create a web application that plays around with a Java servlet.

    Set up Eclipse development environment
    The following software programs are required to be installed on your computer:
  23. Building your first Spring 3 MVC application using Eclipse

    by , 12-10-2011 at 07:51 AM
    Spring is one of the most popular application frameworks for Java development. The framework comes with various projects like Spring Core, Spring Data, Spring Web Services, Spring MVC…Each project suits for a particular area, and for the area of web development, Spring MVC is very well-known.
    Spring MVC makes web development easier by separating the three components: Model, View, and Controller.

    • The model represents the principal data that is managed by the application.
    Tags: eclipse, mvc, spring 3 Add / Edit Tags
    MVC , Spring 3 , Eclipse
  24. Building your first Struts 2 application using Eclipse

    by , 12-09-2011 at 05:30 PM
    Struts is one of the most popular web framework for Java. It comes with 2 major branches, Struts 1 and Struts 2. Both implement MVC architecture but Struts 2 is much simpler, easier to build, deploy and maintain than Struts 1.
    This article will guide you through the steps to build a simple Struts 2 application using Eclipse IDE.

    Download Struts 2 and required libraries

    Download latest version of Struts 2 from Download a Release
    Select the full distribution, ...
    Eclipse , Struts
  25. MIDlet Suite

    by , 11-27-2011 at 06:44 PM (My Java Tips)
    In this post, I will introduce you to the MIDlet suite.

    I assume that you people have worked with Eclipse. In Eclipse, you create projects and all the contents of the project are placed in the project folder. It is an approach for managing the work.

    MIDlet suite is very much like a standard Java project in Eclipse. Please note that it's not a requirement to place MIDlets inside a Java Archive (JAR) file, but JAR files provide the most common means of distributing MIDP ...
    Java ME
  26. Deploying MIDlets onto Mobile Devices

    by , 11-26-2011 at 07:43 PM (My Java Tips)
    The subject topic is very interesting and a lot of people have asked me about this. It is just a matter of knowing how this works. I am sure you will find it very interesting.

    MIDlets are programmed using Java Development environments like Eclipse, JBuilder,Netbeans or Sun Java wireless Toolkit. Once coded, they are build and tested on emulators. When all the tests are passed, you want to finally deploy it to your mobile device to see how it works in real world scenerio.
    Java ME
  27. Subclipse

    by , 11-22-2011 at 06:41 PM (My Java Tips)
    Consider that you are working on a large/medium size Java project in teams. This is an ideal scenario for using Subversion to distribute and maintain source code. Good news is that you can use integrate your source code with Subversion within Eclipse environment.

    An Eclipse plugin called Subclipse is to be used for integrating source code with Subversion within Eclipse environment. You may download Subclipse from:

    Once ...
  28. Running a plug-in

    by , 11-16-2011 at 08:38 PM (My Java Tips)
    As you develop your plug-in in the workspace, the incremental Java compiler will compile your Java source code and place the .class files into the bin directory of your PDE project. When you are ready to test your plug-in, you can launch a separate Eclipse application instance to test your new plug-in.

    The easiest way to launch an Eclipse application is via the link in the Testing section of the plug-in manifest editor's Overview page. This will immediately create a second Eclipse ...
  29. Changing Java for projects

    by , 11-14-2011 at 06:37 PM (My Java Tips)
    Sometimes you want to keep legacy code and for that you have to use older version of Java. These days, people are working in Java 5 and Java 6. But still developers are using legacy code which means using Java 1.3 and Java 1.4. In this post, I will brief you how to change the Java version for projects in Eclipse.

    Eclipse provides support for changing the Java version through few clicks. Eclipse 3.3.0 has Java 5.0 configured. So if you do not specify Java version, your project will ...
  30. Changing Console properties

    by , 11-14-2011 at 06:31 PM (My Java Tips)
    Eclipse provides a console window in which you see the output of your Java program. Normally default properties are sufficient and developers are satisfied with it. In some cases, you might want to change the look and feel of the console window. I'll write about this in this post.

    The default console looks like this:

    Now lets try to change the look and feel. Click
    Tags: console, eclipse Add / Edit Tags
Page 1 of 2 12 LastLast