I use NetBeans to develop and debug OSGi apps based on Felix all the
time. After all the OSGi based application is a Java SE application, and
NetBeans has a very rich support for such application development. These
are the steps:
1. Create a Java SE project.
2. Add felix.jar to classpath.
3. Set org.apache.felix.main.Main as the main-class in your project, if
you want to launch the program from NetBeans.
4. Set break points in your bundle and you are ready to go.
I don't think there exists any OSGi manifest editor in NetBeans as of
now (it may change soon, given that GlassFish is now OSGi-ed and both
GlassFish and NetBeans are open source projects where the significant
contribution comes from Sun Microsystems), but I don't see this a
show-stopper, as I use maven-bundle-plugin [1] to generate all my OSGi
manifest headers.
Thanks,
Sahoo
[1] http://felix.apache.org/site/maven-bundle-plugin-bnd.html
Jay Askren wrote:
I'm currently writing an osgi app using Eclipse. I would like to develop it
in Netbeans. So, from inside Netbeans I want to run and debug this app that
I'm writing. I've seen some web pages which say that I can run a Felix app
from inside Netbeans using Maven, but I wouldn't think I would be able to
debug the app using this technique? What is the preferred way to run my own
Felix apps from inside Netbeans as I'm developing them. Also Eclipse helps
a lot when it comes to editing the manifest.mf file. Are there any plugins
for Netbeans that do something similar?
Jay
On Fri, Jun 27, 2008 at 1:39 PM, Sahoo <[EMAIL PROTECTED]> wrote:
Jay,
Do you want to run Felix app as part of NetBeans Rich Client Platform (RCP)
or as part of NetBeans IDE?
Thanks,
Sahoo
Jay Askren wrote:
I was wondering if there is a way to run an Apache Felix app inside of
Netbeans.
Jay
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]