Thread: [Hecl-devel] Hecl running on BB!
Brought to you by:
davidw
From: David W. <dav...@gm...> - 2009-08-19 11:17:48
|
Using the 'barry' tools for Linux, I got Hecl loaded on to an actual BlackBerry device, and it seems to run ok, although the 'form' is definitely ugly... -- David N. Welton http://www.welton.it/davidw/ http://www.dedasys.com/ Sent from Padua, Veneto, Italy |
From: Martin M. <DO...@gm...> - 2009-08-19 19:09:09
|
Hi David, > Using the 'barry' tools for Linux, I got Hecl loaded on to an actual > BlackBerry device, and it seems to run ok, although the 'form' is > definitely ugly... Maybe you could try to run mwt-stuff on BB? It's canvas based and should looks the same on every phone. Of course I don't know if mwt is the right lib for your reason. Ciao, Martin -- Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate für nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02 |
From: Alexios Z. <zvr...@zv...> - 2009-08-31 20:13:11
|
David (and others), as I'm trying to set up a development environment for building Hecl (for Blackberry), do you have a list of things that should be installed ? starting from a "clean" MS-Windows machine. ideally, i'm looking for something like: - get the Eclipse bundle XXX (*not* YYY) - get the blackberry plugin etc. I'm asking, because: a) I have really no experience in Windows b) I seem to remember someone (on this list?) saying that the "Pulsar" bundle ("Eclipse for Mobile Java Developers") which sounded most promising on eclipse.org/downloads is unsuited for Blackberry... Many thanks in advance, -- -- zvr -- -- +---------------------------+ Alexios Zavras (-zvr-) | H eytyxia den exei enoxes | zv...@zv... +-----------------------zvr-+ |
From: Mario Z. <mar...@ya...> - 2009-08-31 20:35:53
|
Hi Alexios As far as the IDE is concerned, you should stick to Eclipse Ganymede and EclipseME. Other than that, I have to say I managed to just run rapc on Hecl jar for the most part of it, and it was all OK. Of course I never got debugging without installing the forementioned tools. Regards Mario ________________________________ From: Alexios Zavras <zvr...@zv...> To: Hecl Devel <hec...@li...> Sent: Monday, August 31, 2009 5:12:53 PM Subject: [Hecl-devel] env for building Hecl David (and others), as I'm trying to set up a development environment for building Hecl (for Blackberry), do you have a list of things that should be installed ? starting from a "clean" MS-Windows machine. ideally, i'm looking for something like: - get the Eclipse bundle XXX (*not* YYY) - get the blackberry plugin etc. I'm asking, because: a) I have really no experience in Windows b) I seem to remember someone (on this list?) saying that the "Pulsar" bundle ("Eclipse for Mobile Java Developers") which sounded most promising on eclipse.org/downloads is unsuited for Blackberry... Many thanks in advance, -- -- zvr -- -- +---------------------------+ Alexios Zavras (-zvr-) | H eytyxia den exei enoxes | zv...@zv... +-----------------------zvr-+ ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Hecl-devel mailing list Hec...@li... https://lists.sourceforge.net/lists/listinfo/hecl-devel |
From: David W. <da...@de...> - 2009-08-31 20:38:09
|
> as I'm trying to set up a development environment > for building Hecl (for Blackberry), do you have > a list of things that should be installed ? Let's see... * Recent JDK from Sun. * JDE from RIM. * Hecl from svn. * Change blackberry.properties to point to the JDE. Also, while you're at it, you may want to get the Sun WTK stuff in order to have a look at 'regular' Hecl. In any case, with Hecl, I'd suggest trying to build the command line version first: ant packageCommandline Just to make sure everything's working (sometimes svn can get a bit messy for a few days). > starting from a "clean" MS-Windows machine. > ideally, i'm looking for something like: > - get the Eclipse bundle XXX (*not* YYY) > - get the blackberry plugin > etc. > I'm asking, because: > a) I have really no experience in Windows > b) I seem to remember someone (on this list?) > saying that the "Pulsar" bundle > ("Eclipse for Mobile Java Developers") > which sounded most promising on eclipse.org/downloads > is unsuited for Blackberry... I don't use Eclipse so I'm not very knowledgeable about how it works. BB development definitely differs from 'regular old J2ME' in that you have to use rapc, but there's a task for that: ant blackberry -- David N. Welton http://www.welton.it/davidw/ http://www.dedasys.com/ Sent from Padua, Veneto, Italy |
From: David W. <da...@de...> - 2009-08-31 21:13:33
|
By the way, the setup I have now is pretty pleasant: I have all my tools and source code and everything in Linux, which is where things get built. After building a new .cod file, I just transfer it to VirtualBox via the 'shared folder' route, and then I install/run it. This lets me keep as much as possible outside of Windows, and use Windows just to run the emulator. -- David N. Welton http://www.welton.it/davidw/ http://www.dedasys.com/ Sent from Padua, Veneto, Italy |
From: Chris D <un...@ho...> - 2009-09-01 10:44:49
|
On a somewhat related note, I use andLinux http://www.andlinux.org/ as my preferred method of dual OS. Ever since I had to send my laptop in for service (for two months), I have been to lazy to re-install Ubuntu. With andLinux I can run all my linux apps just by double clicking the apps an icon on the desktop. So if you are setting up a windows machine primarily for BB development, at least you can still have access to the apps you like. > Date: Mon, 31 Aug 2009 23:13:22 +0200 > From: da...@de... > To: hec...@li... > Subject: Re: [Hecl-devel] env for building Hecl > > By the way, the setup I have now is pretty pleasant: > > I have all my tools and source code and everything in Linux, which is > where things get built. > > After building a new .cod file, I just transfer it to VirtualBox via > the 'shared folder' route, and then I install/run it. > > This lets me keep as much as possible outside of Windows, and use > Windows just to run the emulator. > > -- > David N. Welton > > http://www.welton.it/davidw/ > > http://www.dedasys.com/ > Sent from Padua, Veneto, Italy > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Hecl-devel mailing list > Hec...@li... > https://lists.sourceforge.net/lists/listinfo/hecl-devel |
From: David W. <da...@de...> - 2009-09-07 16:21:23
|
> Maybe you could try to run mwt-stuff on BB? > > It's canvas based and should looks the same on every phone. > > Of course I don't know if mwt is the right lib for your reason. That was a good idea. It definitely looks better. The problem is that it doesn't seem to run quite right:-/ It lets me move between the buttons on the main screen, but clicking on them doesn't seem to do much. I wonder if it's a difference in events of some kind? -- David N. Welton http://www.welton.it/davidw/ http://www.dedasys.com/ Sent from Padua, Veneto, Italy |
From: Martin M. <DO...@gm...> - 2009-09-12 08:10:32
|
Hi David, > That was a good idea. It definitely looks better. The problem is that > it doesn't seem to run quite right:-/ It lets me move between the > buttons on the main screen, but clicking on them doesn't seem to do > much. I wonder if it's a difference in events of some kind? It's likely the key-code mapping but i have had a look in BlackBerry JDE API Reference 4.5.0/4.7.0 and found out that the FIRE code is 8 for both api's. It's the same like in the wtk emulator :(. So I've now idea what is going wrong. It's a bit hard to fix it or just to understand it for me, because i don't have an bb phone and don't have even the emulator running. However, I'm happy the its run at least :). Maybe you should put some system.outs in to the code and see what the MwtManager receives? MwtManager.java // notify input protected void keyPressed(int keyCode) { System.out.println(keyCode); try { if (keyCode > 0) { event.keyPressed(keyCode); } else { event.keyPressed(getGameAction(keyCode)); } } catch (HeclException ex) { ex.printStackTrace(); } } MwtManagerCmd.java public void keyPressed(int keyCode) throws HeclException { System.out.println(keyCode); ip.eval(new Thing("keypressed " + keyCode)); } and into the script it self. proc keypressed {keycode} { global htm puts "$keycode" [$htm getmain] setkeystate $keycode "keystate_pressed" "true" } Here is the method call sequence: The MwtManager imtements the EventListener. Means the "keyPressed" method will call first. This method translate the keycode by "getGameAction" when it's <0. In the emulator it's <0. (Maybe it's not negative for bb-emu???) The event interface is implemented by MwtManagerCmd.java and here the hecl command "keypressed" will be called. This is the place where i usually set the keystate to the window object. Sometimes we can make an low-level event handling here. So, I hope it's help a little so far. When you have the bb-emu output post it to the list. And I'll try to fix them. Thanks in advance! Martin -- Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate für nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02 |