How can I write a pluggable java application. I read about OSGI and some other plugin frameworks but I want to do that me myself. Is there any easy way to write what I want?
Yes you can write your own plugins framework with some reflection. This link might be helpful. Creating Extensible Applications