BUG Community

Welcome! Log In

Forums BUG SDK Hello World without Eclipse

Subscribe to Hello World without Eclipse  8 posts, 5 voices

Log in to reply to this topic
 
Jan 6, 2009 3:28pm
Img_missing_medium vocaro 7 posts

I recently purchased the BUGbase, and I want to try it out by running a simple Hello World application on it. However, it seems all of the instructions in the wiki require Eclipse. I’m not an Eclipse user and do not wish to become one. Is it even possible to upload and run an application on the BUGbase without using Eclipse? If so, are there instructions on how to do this?

Jan 6, 2009 5:15pm
Medium Bug Labs team jconnolly 285 posts

vocaro
I recently purchased the BUGbase, and I want to try it out by running a simple Hello World application on it. However, it seems all of the instructions in the wiki require Eclipse. I'm not an Eclipse user and do not wish to become one. Is it even possible to upload and run an application on the BUGbase without using Eclipse? If so, are there instructions on how to do this?


vocaro,

There is nothing requiring you to use pMEA, eclipse, or even java at all. If I may list some of the benefits of doing so however, you may be persuaded:
    1. the bindings to control the hardware (ioctls, reading from chardevices, etc) are all in Java.
    2. The software stack on the BUG is OSGi-centric, meaning that the java runtime is executing OSGi bundles.
    3. The easiest way to write OSGi bundles for the BUG is using eclipse and the Dragonfly plugin for Eclipse. All of access to the API is most easily attained by using the SDK.

You can try compiling your own java 1.4-compatible java class and running it on the BUG but it would be less than exciting. a System.out.println("Hello world!") running on the BUG is not much more interesting than running it on your own system.

something like:
javac -source 1.4 HelloWorld.java
scp HelloWorld.class root@10.10.10.10:/home/root/
ssh root@10.10.10.10
(no password)
/opt/phoneme-advanced-personal/bin/cvm /home/root/HelloWorld
Hello world!
Jan 7, 2009 11:53am
Img_missing_medium vocaro 7 posts

jconnolly
There is nothing requiring you to use pMEA


What is pMEA?

jconnolly
1. the bindings to control the hardware (ioctls, reading from chardevices, etc) are all in Java.
2. The software stack on the BUG is OSGi-centric, meaning that the java runtime is executing OSGi bundles.


I have no problem using Java; I just don't want to use Eclipse. These points don't apply because they have nothing to do with Eclipse.

jconnolly
3. The easiest way to write OSGi bundles for the BUG is using eclipse and the Dragonfly plugin for Eclipse.


Maybe it's easier, but why is it mandatory? Sure, Eclipse adds some nice graphical and automation features, but that shouldn't prevent someone from dropping down to the command line and building/deploying a BUG app manually. Otherwise, you exclude the many people who prefer some other environment (NetBeans, IntelliJ IDEA, vim, TextMate, etc.) to develop for the BUG. Seems like there should at least be a "getting started" guide for those kinds of people.
Jan 7, 2009 6:58pm
Medium Bug Labs team kgilmer 215 posts

Hi again Vocaro,

pMEA: phoneME Advanced

The eclipse SDK simply compiles for Java 1.4 bytecode compatibility against the phoneME classpath, and uploads to the bug via HTTP POST the compiled jar. The servlet lives in the com.buglabs.bug.program bundle.

We’re always interested in other ways of doing things, and would like to support more than just Eclipse. :)

To deploy a compiled BUG app via usb, follow Johns step for compiling and then:

scp myapp.jar root@10.10.10.10:/usr/share/java/apps

Then either reboot BUG or ssh to BUG and type:

/etc/init.d/concierge restart

Jun 28, 2012 2:25am
User_img_not_found_03_med louis 38 posts

http://www.louisvuittonusauks.co.uk/ louis vuitton bags

http://www.louisvuittonpurses-outlets.net/ louis vuitton Handbags Outlet

http://www.greatlouisvuittonbags.com/ louis vuitton purses

http://www.louisvuittonpursebags.net/ Louis Vuitton Purses

http://www.louisvuittononlineshops.org/ Cheap Louis Vuitton

http://www.officiallouisvuittonzone.net/ louis vuitton outlet

http://www.hermesoutletus.org/ hermes Purses

http://www.cheap-suprashoes.org/ cheap supra shoes

Jul 27, 2012 1:19am
User_img_not_found_04_med never722 61 posts

Christian Louboutin Red Bottoms shopping center is very classic and fashion Christian Louboutin Red Shoes is a registered very smart indeed – founded in Paris in 1992, he rode the wave of great shoe late nineties high fashion Louboutin Replica high-heeled pumps is very People this year.It is the ladies’ high
Christian Louboutin Discount menswear brand that you really fascinated
by it. Imagine my surprise to find that selling Cheap Christian louboutin are very comfortable. louboutin 2012 cheap online is really making me feel beautiful! Have you been coveting a pair of red-soled Christian Louboutin pumps brilliant blue fringe
ankle strap.

Jul 27, 2012 1:21am
User_img_not_found_04_med never722 61 posts

Christian Louboutin centro commerciale ? molto classico e moda scarpe Christian Scarpe Louboutin ? un marchio molto intelligente anzi – fondata a Parigi nel 1992, ha
cavalcato l’onda degli anni novanta scarpe grandi ritardi di alta moda Louboutin Outlet tacco alto pompe ? molto popolare questo ? year.It alta delle signore
Christian Louboutin menswear marchio a prezzi scontati che si ha
realmente affascinato da essa. Immaginate la mia sorpresa nello scoprire che vendono Louboutin Scarpe a buon mercato sono molto confortevoli. In linea Christian Louboutin 2012 ? veramente a buon mercato mi fa sentire bella! Sei stato bramare un
paio di rosso-suola Christian Louboutin cinturino alla caviglia pompe
blu brillante frangia.

Jul 27, 2012 1:22am
User_img_not_found_04_med never722 61 posts

The man behind the Louboutin for Men
red soles, Christian Louboutin, has created a real-life version of
Cinderella’s famed glass slippers to celebrate the re-release of the
classic Disney film.Louboutin Men Shoes
is absolutely representative of fashion and recreation,Mens Christian Louboutin
, became a matter of course the popular protagonist of the season. Christian Louboutin 2012
will open his first London men’s boutique this November.Christian Louboutin Men
is famed for his high heeled shoes but recently said he believes heels for men are a step too far.

Log in to reply to this topic
Forums BUG SDK Hello World without Eclipse

Powered by Community Engine