BUG Community

Welcome! Log In

Forums Applications Including a Java Project in a BUG Project

Subscribe to Including a Java Project in a BUG Project  8 posts, 4 voices , Tagged: Eclipse java BUG

Log in to reply to this topic
Oct 16, 2009 11:57pm
Medium jpdelacroix 3 posts


I’m using Eclipse and I have two projects. The first is a BUG project I created using the Dragonfly SDK and the second is a regular Java Project. I would like to use the code from the Java Project in the BUG Project without copying it all over (since the Java Project is a rather large project). I included the Java Project in the BUG project (via the Build Path); however, when I try to run the BUG application I get the following type of error:

org.osgi.framework.BundleException: Error starting bundle Bundle [38]: file:/usr/share/java/apps/MotionDetection.jar
        at ch.ethz.iks.concierge.framework.BundleImpl.startBundle(Unknown Source)
        at ch.ethz.iks.concierge.framework.BundleImpl.start(Unknown Source)
        at com.buglabs.osgi.shell.commands.concierge.Start.execute(Unknown Source)
        at com.buglabs.osgi.shell.internal.ConsoleListener.run(Unknown Source)
        at java.lang.Thread.startup(Unknown Source)
java.lang.NoClassDefFoundError: com.example.HelloJava

I’ve copied over the jar from the BUG to my desktop, and it doesn’t contain any of the files from the Java Project it would need to run.

So my question is, how do you I properly include a Java Project in a BUG project?

Thank you,



Oct 19, 2009 10:31am
Medium Bug Labs team jconnolly 285 posts

Hi jpdelacroix,

The BUG runtime has no notion of your Java Build Path in eclipse, the OSGi way is to list the package namespace to be imported in your Import-Package: declaration in your MANIFEST.MF.  The Framework will then know to load the corresponding bundle to satisfy the required imports.  Have a look over at the rather detailed tutorial here:



Oct 21, 2009 2:22pm
Medium jpdelacroix 3 posts

Thanks for the tip! Turns out I really needed to run my application separately from the bundles anyways, since it requires Java 1.5/1.6. I cross compiled the newest JamVM and GNU classpath and use those to run my Java 1.5/6 application. The bundles that access the hardware run in the OSGi framework and exchange data with the application in JamVM via a socket on the loopback device. Probably not the most elegant solution, but it works.

Is it possible to substitute pMEA with JamVM without breaking everything? It’d be great if I could push my application down into OSGi and avoid using sockets to share information.

Thanks again.

Oct 21, 2009 2:45pm
Medium Bug Labs team jconnolly 285 posts

oh wow cool… there are only a handful of phoneME-specific classes used in our entire API (IVonHippelSerialWriter) which would cause a runtimeexception if used.  Other than that I think you should be able to swap out the VM without worrying.  In fact motherbug is running on cacao-openjdk6 and all I did was swap out the JVM’s. It’s interesting that you ask though, because I’m going to try to move away from javax.microedition classes and towards librxtx.  The upcoming R1.4.3 version of our stack will include avetana-based bluetooth support, which also relies on some CLDC-specific classes.  That effort would be slightly more complex to re-implement.

Either way, have at it!

Oct 23, 2009 12:15pm
Medium jpdelacroix 3 posts

Yes, I think it’d be a great to have the BUG (and its OSGi framework) run with a VM that is Java 1.6 compliant. Java generics introduced in 1.5 and the Java concurrency work that went into 1.6 make Java applications so much more powerful.

Oct 23, 2009 12:24pm
Medium Bug Labs team jconnolly 285 posts

Yeah we have some backported concurrency libraries as part of our stack (edu.emory.mathcs.backport.java.util), but generics sure are nice.  Not to mention all of the cool extra libraries out there that require a >jdk1.4 compatible VM.  Not to mention the lack of swing or a nice GUI framework in phoneME… I could go on.  ;D

We’re working on the option of using a JDK1.6-compatible VM but it’s not yet ready for production.  stay tuned!

Aug 14, 2012 2:02am
User_img_not_found_06_med rubing 103 posts

Isn’t it funny how we www.coachfactorystoreec.com/ Coach Factory Store always want what we can’t have? The girl with the round and pert backside wishes that her rear were 5 times smaller. Meanwhile, the girl with the non existent posterior wishes to achieve a larger butt. Well, if the grass is greener on the other side, just water yours! If you’ve got a small behind, you can create the illusion of a larger one with butt enhancing jeans. Here’s how to do it. Look for light weight denim – This material is very stiff and heavy. If you try to stuff a flat butt into denim jeans, it will only create a flatter looking behind. A little stretch goes a long way – Your butt enhancing jeans should additionally contain some stretch. A mixture of 98 percent cotton and 2 percent lycra is best. This combination of lycra and cotton, especially when it’s in a nice tight-weave fabric that’s fitted through the hip and thigh area will help lift your buttocks. Too much lycra and your jeans may start to ripple like a pair of leggings. If there’s not enough cotton content, there won’t be enough structure to hold you up. It’s all in the pockets – The most effective trick for creating the illusion of a bigger butt is to choose jeans with flap pockets. The added bulk of the flap will enhance and add dimension to your tiny tush. True Religion is notoriously famous for their flap pocket designs. You can also try Hudson, Rock & Republic, Frankie B and Paige for addition flap pocket styles. Pocket placement – If you’re not a fan of flap pockets, or if you’ve already bought too many of them, you can also try denim with regular pockets. Be sure to aim for a pair with smaller pockets that sit higher and this will help make your rear look lifted. Cut is also important – Look for jeans with a slight tapering at www.coachfactoryonliness.com/ Coach Factory Online the knee, such as a straight leg or skinny style. This cut will make your bum look a bit larger in comparison to the rest of your body. Great styles to try are True Religion Billy, Julie or Stella, Siwy Harmah or Rose, and Hudson Emily or Paige. How low can you go – Actually, you don’t want to go too low when it comes to the jean rise. The goal is to project more, not less. A pair of low rise denim will only reduce the size of your rear. Instead, opt for a pair with a medium rise. Color me right – Since dark colors minimize, dark denim and indigo will create a slimming effect. You do not want this kind of effect on your barely there behind! Try to find light colored or medium blue denim. Grey is very flattering and will also work. Like a great bra, butt enhancing jeans can also lift and www.coachfactoryoutletusa.com/ Coach Factory Outlet separate what little you have. So it wasn’t in your genes to have a nice, round bottom. Big deal. Be happy with what you’ve got and just improvise!

Aug 17, 2012 8:25pm
User_img_not_found_05_med shenghuo 86 posts

http://www.greatlouisvuittonsbags.com/ louis vuitton Handbags
http://www.louisvuittonpursebags.org/ Louis Vuitton Bags
http://www.louisvuittonsonlineshop.org/ Louis Vuitton Outlet Online
http://www.hermesoutletsus.net/ hermes outlet
http://www.cheap-suprashoe.net/ cheap supra shoes
http://www.officiallouisvuittonzones.net/ louis vuitton outlet

Log in to reply to this topic
Forums Applications Including a Java Project in a BUG Project

Powered by Community Engine