BUG Community

Welcome! Log In

Forums Java SerialCommunication

Subscribe to SerialCommunication  6 posts, 4 voices

Log in to reply to this topic
Aug 17, 2011 2:13pm
User_img_not_found_02_med htambekar 4 posts

Hello EveryOne,

Please Help.

I am trying to do serial-communication of a device and BUG. For that purpose I added IVonHippelSerialPort.class.getName() in the array of services in Activator. For User Interface I used applet (JFrame). Now when I am trying to run my code I am getting an error as follows

08/17 19:04.07 ERROR  : Nested Exception: com/buglabs/bug/module/vonhippel/pub/IVonHippelSerialPort

java.lang.NoClassDefFoundError: com/buglabs/bug/module/vonhippel/pub/IVonHippelSerialPort

        at sample.Activator.<clinit>(Activator.java:25)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)



Somebdoy Please Help….........

Aug 18, 2011 7:04pm
Medium Bug Labs team kgilmer 215 posts

Hi htambekar,

  Are you seeing this error when running in the BUG Simulator or when running in a BUG?  What SDK and BUG versions are you using?



Aug 19, 2011 2:09pm
Medium Bug Labs team jconnolly 285 posts

Hi htambekar, sorry for the confusion.  The Serial API has been reworked quite a bit.  Long story short, the old implementation uses serial libraries only provided by our legacy java virtual machine.  We’ve since moved to RXTX to provide the same functionality.  The IVonHippelSerialPort code should be deprecated, and will be deleted from the SDK side of things soon.  I’ve put up an example of how to use it against version R2.1.0 of our software here:


If you’re using R2.0.1 or R2.0.2, (check by doing cat /etc/buildinfo on your BUG and pasting it here), there are older versions of that app that will work for you.  Let me know and I can provide instructions for you.  If you’re using R2.1.0, follow the instructions below…

Follow these steps to ensure that the app will run for you:

1) Download http://www.buglabs.net/applications/com.buglabs.emulator.rxtx to your workspace

2) Download http://www.buglabs.net/applications/rxtx_example_20 to your workspace

3) Send rxtx_example_20 to your BUG and verify that it runs (it assumes VonHippel in slot 0, next to the video slot).  Do NOT send the emulator.rxtx bundle to BUG, the rxtx libraries with the native libraries to run on BUG are already there for you.




Aug 23, 2011 8:53am
User_img_not_found_02_med htambekar 4 posts

Hey Thank you guys.

I got my result. There was problems with drivers of cable. Thank You anyways…

Oct 24, 2012 1:53am
User_img_not_found_01_med qazqazqaz 469 posts

As a perfect combination of classic and modern fashion,Coach Outlet Online Julia Bags can show the customers'unique personality.Tiffany UK grabbed the globe, stands out as the celeb on their favorite stars luxury type, granted an innovative simple move the pavement luxury, complete with luxury.In terms of the quality and superior design that make more and more customers are satisfied to Coach Factory Online.Welcome!hat experts claim Coach Outlet Online shopping is in the changes they are available in.As long as you open our Coach Factory Outlet webpage, you will view various Coach New Arrivals which are the most popular also the most fashionable in this year.On the date when the Louis Vuitton UK on sale, all people will pour into the stores. At this time, it on the booths will be wiped out, and only one or two days the seller will declare that there is no stock anymore.

Oct 24, 2012 4:17am
User_img_not_found_01_med qazqazqaz 469 posts

Remember that the right accessories can enhance your alluring look with your Canada Goose Parkas Outlet.Baggy, ovoid shaped Canada Goose Jackets Outlet that are rounded around the shoulders look fabulous and can be a perfect match for you.This excellent conviction so that you class gets to amateur Canada Goose Outlet In a number of Parka, for example Young Canada Goose affordable Cardigan.Luxury has always been synonymous with fur and leather and this year a faux fur Canada Goose Jackets Outlet will surely be the key piece of your wardrobe.

Log in to reply to this topic
Forums Java SerialCommunication

Powered by Community Engine