Easy way to Import Project to Eclipse workspace


There was this situation where I had to import my non-eclipse project to eclipse environment. I tried to import with the regular eclipse way Import → General → File System. But It required the empty project existing into the eclipse environment. So, I always had problems with it.

Then, I accidently found a newer way to import project to eclipse environment, it is also easy and doesn’t take time.

Follow the instructions below

My workspace is e:\htdocs
Switch workspace

1. First copy the project to the eclipse workspace.
For e.g. I have copied my “news” zend proejct to the root of my workspace.
Non-eclipse Project

2. Then create the eclipse new project with the same name as the project. i.e. if the root project folder is dummy_project then create eclipse new project with name dummy_project.
Create new eclipse project

Ignore the message shown during creation of new project about the existing project.

3. Finally click “Finish” to import the project. It takes some processing and then the project is imported into the eclipse workspace.
Create new eclipse project
I felt this way quite easy to import eclipse project then the usual import provided in eclipse.

Hope you find it useful. If you have any comments please drop them in the comment below 🙂

[Eclipse SR2-Solved] Comment/Uncomment Not Working


This is the bug in Helios Service Release 2, Build id: 20110218-0911. This bug has been tracked here.

The comment/uncomment from shorcuts (Ctrl + /) and from menu (Source > Toggle Comment) does not working.
After some research, I found the solution. There is a patch.

Step 1

All we have to do is download three files




Step 2

Paste these files in eclipse/plugins/
Paste Folder Location

Step 3

Now, restart eclipse with -clean switch i.e. “E:\Softwares\eclipse\eclipse\eclipse.exe -clean”.

Eclipse Clean Switch

This fix worked for me and hope works for you as well.

Update : Url mentioned above are no longer accessible from sourceforge.net but they are still available on url Yes, I also found the links are missing. They might have been deleted from the sourceforge.net.

You can access all the files from http://download.eclipse.org/tools/pdt/updates/2.2/milestones/plugins/

Use search feature provided by browser to locate the url exactly. I was able to find all the files mentioned in my above post.


[Review] Eclipse (Helios) Vertical Selection Feature


I have been using Eclipse as an IDE for JAVA and PHP for almost every project that I have done so far. And yet always there is room for exploration in Eclipse IDE. And today I am going to review a latest feature that has been added to the Eclipse, The feature is known as vertical selection

This feature is the mere replication of the Textmate (IDE in Mac). It is very nice and handy at situations when we need the multiple copies of the same lines, rather than copying and pasting the same line over all the lines, we can simply highlight multiple lines at once with vertical selection and write on all of them at once.

Q. Well, How do we do this Vertical Selection ?
Quick Code :

  • Alt + Shift + A to toggle the mode for vertical selection.  After this shortcut is executed the cursor changes to the plus sign
  • Select area vertically, position the cursor at the top, begin writing
  • Use Shortcut (Alt+Shift+A) again to toggle the mode.


Use shortcut Alt+shift+A to toggle the mode.

Now just drag the cross pointer downward making a vertical selection, remember while you are doing this the cursor must be positioned at the top so there is enough room for all lines.
After vertical selection has been done it might be similar to the screenshot below.
Eclipse Vertical Selection Feature Demonstration

Now just type in single line, and you will see that the other lines are filled up automatically as you are typing. See the Screenshot below). That’s the feature we were talking about.
Eclipse Vertical Selection Demonstration

For Anyone doing with the HTML Templating and Design might find this feature very as it saves us writing same lines, copy and pasting and thus saves our precious time.

Minor Project SMS Banking in Java


SMS Banking Projects and Locus

We (Asee and Me )have kept stall in LOCUS (http://locus.ioe.edu.np) Room no. 304 and getting nice feedback from the visitors. Our presentation went good and judges seemed to be happy. Volunteers were really very helpful and co-ordination was impressive. Today I knew why IOE students are good, because they have the environment which gives them opportunities to learn and explore themselves.

Since most of the friends have asked for the source-code of the program we thought of releasing the source and making it available for everyone so others can study our code. We agree our code is not so much efficient and hasn’t been well documented but the places were document is most has been documented. If you are thinking on implementing this code for commercial purpose, then we’ll not be responsible for any kind of damage caused by the use of these codes. There is no any kind of licensing. As long as you are happy to use these codes, you are all yourself.

Project on SMS banking requires some knowledge of AT Commands for controlling the GSM/GPRS Modem

Our project requirements are categoriesed into hardware and software.


1. Java Programming Langauge (Download Link)

2. Java Communication API (Please google and find it, start with javaxcomm.zip)

3. Eclipse IDE (Optional)

4. MySql Server (Download Link)

5. Mysql Connector for Java(Download Link)

Softwares listed above are available freely available but we’ll also need a hardware i.e. GSM/GPRS Modem, which costs around Rs. 10,000/- here in Nepal alternative would be to use cell phones that can be controlled through AT Commands.


1. GSM/GPRS Modem

GPRS Modem

2. Connectivity Cable for GSM Modem

We have tested our system in windows and haven’t tested it under linux environment, so you’ll have to manage yourself to get it working under linux environment, let me know if you have any difficulty in setting up, and I will try to assist you as much as I can.

Initial Setup

At first you have to install Java Development Kit ( JDK 7.0 ) then You’ll have to configure Java Communication API, this is the most annoying part of the project, and people find this quite confusing. (See How to configure Java Communication API-not available will write it down soon).

After configuring Java Communication API, you’ll have to install MySql Server in your system, this will be the backend database server for our project.

To connect MySql Server throguh java we’ll need MySql connector/J for Mysql developed by MySql Developers for Java.

(PS How to configure MySqlConnector/J for Java-not available will write it down soon).

Eclipse IDE

We have used Eclipse IDE as our primary IDE for development of this software, as eclipse is quite easy for project management and development tasks and it has got some quite nice features.

bove all are available freely but we’ll also need a hardware i.e. GSM/GPRS Modem, which costs around Rs. 10,000/- here in Nepal. We can also use mobile phones which can be controlled via AT Commands.

Here is the full sourcode for the project Download Full Sourcode Here

Here is the Github repository link