The entry point for OSGi applications are BundleActivator's. You can not invoke the main-method like in standard Java applications. However, you can do all the stuff you would do in the main method in the start(BundleContext) method of your bundle.
So, implement the BundleActivator interface and add it to your manifest.