Join Our 3 MILLION+ Members Today! Register Here | Login
Login or Register to post comments

43 Comments

Posted by breakerfall Wednesday, Feb 18, 2009 1085 days ago

I love 'teach a man to fish!!'

great idea for the tutorial, thanks much

 
 
Posted by mrsFAB Wednesday, Feb 18, 2009 1085 days ago

I got excited when I saw the Dallas Cowboys icon on the phones in the pic!

 
 
Posted by michiganroots Wednesday, Feb 18, 2009 1085 days ago

Forget that. How 'bout that sweet red & white logo above it there, eh?

America's Team??? Pshhh....HOCKEYTOWN!!!

A real organization.... ...Man's Game!!!

 
 
Posted by Reality Friday, Feb 20, 2009 1083 days ago

Exactly..
Can someone send me the Cowboys image since it's already done.?

Thanks!

 
 
Posted by CurlyFatAngry Wednesday, Feb 18, 2009 1085 days ago

Great tutorial right there, specially for someone starting new in the J2ME platform ....

 
 
Posted by ipod lcd replacement Saturday, Apr 18, 2009 1026 days ago

I agree. J2ME was German to me, but the tutorial really gave great insight which I could easily understand. Major props for making this. Thank you.

 
 
Posted by dawgwood Wednesday, Feb 18, 2009 1085 days ago

Do you have to have a signature to get it to work on your device? What if all you want to do is install it yourself and not distribute it?

 
 
Posted by Borderpatrol Wednesday, Feb 18, 2009 1085 days ago

I second the question. I want to make some for my own personal use and not to distribute. Can that be skipped?

Borderpatrol1987

 
 
Posted by SargentSlim Wednesday, Feb 18, 2009 1085 days ago

someone try it and report back.

 
 
Posted by phikai Wednesday, Feb 18, 2009 1085 days ago

Yes, you have to have signatures. This is to ensure that when accessing the secure API's RIM knows about it. Sorry, but for 20 bucks you can create as many as you want...

 
 
Posted by BBA Wednesday, Feb 18, 2009 1085 days ago

Extend 'Application' and not 'UiApplication' in the class.

 
 
Posted by Acupuncturist Wednesday, Feb 18, 2009 1085 days ago

Nice tutorial. I love how detailed it is!

 
 
Posted by neverhavemoney Wednesday, Feb 18, 2009 1085 days ago

I mean i would love to create these but that just seems weird. I would rather just to to the website i am looking for, add it to my bookmarks, clikc the left convience key(set to browser) and choose the link from my book marks.

Awsome tutorial man, really love the detail. But the only thing, is the 20$. IT KILLS ME! haha im cheap lol

Thanks for the tutorial though,
Ben

 
 
Posted by fstbusa Wednesday, Feb 18, 2009 1085 days ago

can you create any type of application if you purchase the signatures?

 
 
Posted by BBA Thursday, Feb 19, 2009 1084 days ago

yeah you only need to buy the keys once. you can then use it for all applications you create.

 
 
Posted by barrels Thursday, Feb 19, 2009 1084 days ago

Thank you very much for this fabulous tutorial!

FANTASTIC!!!

 
 
Posted by Darren Drinkwater Thursday, Feb 19, 2009 1084 days ago

Firstly great guide and was real easy to follow. I've gone thru and installed the BlackBerry and Java DE stuff, written/copied the code and got to the build step. When i hit build i get this message:

Building pistonheads speed matters
C:\Program Files\Research In Motion\BlackBerry JDE 4.7.0\bin\rapc.exe -quiet import="..\..\..\..\..\Program Files\Research In Motion\BlackBerry JDE 4.7.0\lib\net_rim_api.jar" codename="..\Pistonheads speed matters\pistonheads speed matters" "..\Pistonheads speed matters\pistonheads speed matters.rapc" warnkey=0x52424200;0x52525400;0x52435200 "C:\Documents and Settings\ddrinkwater\Desktop\BlackBerry JDE work\Pistonheads speed matters\pistonheads speed matters.java" "C:\Documents and Settings\ddrinkwater\Desktop\BlackBerry JDE work\Pistonheads speed matters\pistonheads static.jpg" "C:\Documents and Settings\ddrinkwater\Desktop\BlackBerry JDE work\Pistonheads speed matters\PistonHeads_Smiley rollover.jpg"
I/O Error: Cannot run program "javac": CreateProcess error=2, The system cannot find the file specified
Error while building project

It's the error i'm thinking where did i go wrong?? Any help out there?

 
 
Posted by simon.hain Thursday, Feb 19, 2009 1084 days ago

while the code above is correct you can achieve it a tiny bit simpler (and cleaner) when using Application instead of UiApplication. No need to create an instance, you can call the browser in the static context.
There are also a few lines more that provide a rollover image:
public static void main(String[] args) {
/*
* alternate entry point used by the autostart project
* to provide a rollover icon
*/
if (args.length>0 && "autostartup".equals(args[0])){
HomeScreen.updateIcon(Bitmap.getBitmapResource("icon.png", 0);
HomeScreen.setRolloverIcon(Bitmap
.getBitmapResource("rollovericon.png", 0);
} else {
Browser.getDefaultSession().displayPage("www.website.com";
}
}

if you do not know how to define an alternative entry point take a look at the knowledge base:
http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/...

while the code is supposed to work with 4.1 upwards i encountered difficulties when we deployed it on 4.1 OS, it ran fine when i removed the rollover code.

this is a repost from the blackberry support forums:
http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&...

in reply to darren:
you have to set the correct path variables on your system (PATH, JAVAHOME)

 
 
Posted by simon.hain Thursday, Feb 19, 2009 1084 days ago

here is the original post:
http://tinyurl.com/b8qj66

here is the part about creating an alternative entry point for the rollover image:
http://tinyurl.com/2rrflz

 
 
Posted by phikai Thursday, Feb 19, 2009 1084 days ago

Those are the articles I used to learn how to do it...I used the first one, and honestly I've never programmed in JAVA prior to this. I use the code I posted and it works..

 
 
Posted by Darren Drinkwater Thursday, Feb 19, 2009 1084 days ago

Thanks Simon, would you mind explaining to me how i go about setting the correct path variables? I've installed all the stuff and got the code down thanks to you guys already . if you want to ping me off line email is: ddrinkw@googlemail.com
Cheers
Darren

 
 
Posted by felchi Thursday, Feb 19, 2009 1084 days ago

Now just find the time to get them done. Thanks

 
 
Posted by bd22 Thursday, Feb 19, 2009 1084 days ago

I am getting the following error when trying to build? any one know why?

I/O Error: Cannot run program "javac": CreateProcess error=2, The system cannot find the file specified
Error while building project

 
 
Posted by MidStrike Thursday, Feb 19, 2009 1084 days ago

I'm getting the same message as bd22 is. it says...

I/O Error: Cannot run program "javac": CreateProcess error=2, The system cannot find the file specified
Error while building project

I know for sure my file name is the same so I dont know what I'm doing wrong.

 
 
Posted by August_10 Thursday, Feb 19, 2009 1084 days ago

Did you guys go to Control Panel > System > Advanced > Environment Variable. Add the path to wherever your jdk's bin directory is to the Path section. It should then work.

Anyone know how to create the ota? Do I just copy the entire directory to my web server and that's it?

 
 
Posted by MidStrike Thursday, Feb 19, 2009 1084 days ago

This is my first time doing this so I'm not really familiar with any of this. What is the path exactly? Is it the file name or is it something else. What is the Path Section? When I open up Evironmental Variables there is two sections, either User variables or system variables.

 
 
Posted by August_10 Thursday, Feb 19, 2009 1084 days ago

System Variables. Look for a variable called Path. Add the directory wherever your java sdk is installed. For example, click on the path variable, then click the edit button and add C:\Program Files\java sdk\bin\ at the end of the line.

 
 
Posted by MidStrike Friday, Feb 20, 2009 1083 days ago

Still no luck, did exactly that and I still have the same message.

 
 
Posted by dmahoney94 Friday, Feb 20, 2009 1083 days ago

kevin,

assuming that's your storm in the pics, where did you get your detroit red wings launcher? i'd love to get one for the fly-guys.

thanks,

Dan

 
 
Posted by MidStrike Friday, Feb 20, 2009 1083 days ago

I'd prefer one for the Chicago Blackhawks...I'm actually trying to create one now but I'm having that message error still

 
 
Posted by SargentSlim Monday, Mar 02, 2009 1073 days ago

dont get it.

 
 
Posted by 2.FiF Thursday, Mar 12, 2009 1063 days ago

i've google-whored the hell out of fixing the I/O Error: Cannot run program "javac": CreateProcess error=2, The system cannot find the file specified
Error while building project issue....

got that gone... now i have..

1 error
Error!: Error: java compiler failed: javac -source 1.3 -target 1.3 -g -0 -d C:\DOCUME~\user\LOCALS~1\TEMP\rapc_32d8d233.dir -bootclassp ...
Error while building project

i've made the Path changes in my Environment Variables to locate the jdk\bin file... i've tried different versions of Java SDK... but this is still coming up.. i'm willing to cough up the $20... if i could get this working...

can someone who has this working please post a sample of what your Environment Variables SHOULD look like....

 
 
Posted by Malluco Thursday, Apr 30, 2009 1014 days ago

For the errors javac compiler, goes to control painel > system > advanced .. click on the button environment variables..

click on button New, in two variables.. add:

Variable name: PATH
Variable value: C:\Program Files\Java\jdk1.6.0_13\bin

I use the new SDK and JDK 6 update 13, you can to get on the sun microsystem website its free. ^^

after you follow this procedure, reboot your computer and, voi-la.. be happy..
I need to request a signature for my to sign my applications ^^.

I will to disponibilizate very very very applications free to blackberry on the future .. sorry to developers that need money to survive, but I will creating all free ^^

 
 
Posted by Brandon9530storm Friday, Mar 13, 2009 1062 days ago

I get the error too.

 
 
Posted by michelbites Tuesday, Mar 17, 2009 1058 days ago

I

 
 
Posted by michelbites Tuesday, Mar 17, 2009 1058 days ago

For those of you that don't know where to purchase the keys you can go here.

https://www.blackberry.com/SignedKeys/

 
 
Posted by Reverse Cell Phone Friday, May 08, 2009 1006 days ago

This tutorial is great! The steps are very easy to follow.

Reverse Cell Phone

 
 
Posted by tommysmommy Wednesday, Jun 24, 2009 959 days ago

thanks for the great information and easy tutorial! :)

 
 
Posted by dkanoot Wednesday, Oct 21, 2009 840 days ago

I've got this all working but it won't install OTA. I get this error: "907 Invalid COD HTTP Error 406: Not Acceptable". Any ideas?

I've been reading all over, pretty sure my MIME types are set, but still no luck.

 
 
Posted by lvelando Tuesday, Nov 24, 2009 806 days ago

Hi.
when I try to build the project I'm getting thisi error:

I/O Error: CreateProcess: javac -source 1.3 -target 1.1 -g -O -d C:\DOCUME~1\TEMP\LOCALS~1\Temp\rapc_28249802.dir -bootclasspath "..\Program Files\Research In Motion\BlackBerry JDE 4.2.1\lib\net_rim_api.jar" -classpath "..\Program Files\Research In Motion\BlackBerry JDE 4.2.1\lib\net_rim_api.jar" "C:\bb workspace\WebLink.java" error=2
Error while building project

Thanks for your help

 
 
Posted by BourbEnzo Thursday, Jan 07, 2010 762 days ago

Forgive my ignorance, but is there any way to make it point to a third party browser such as bolt? Any help is greatly appreciated!

 
 
Posted by dannars Friday, Jan 07, 2011 397 days ago

Hi everyone,

I trying to do the example, I fix it the error on JAVA path.. Thanks!, but when I try to build the proyect, got new one error message:

Building crackberry
C:\BlackberryJDE\bin\rapc.exe -quiet codename=crackberry crackberry.rapc warnkey=0x52424200;0x52525400;0x52435200 import=..\..\..\..\BlackberryJDE\lib\net_rim_api.jar C:\Users\Daniel\Documents\BlackBerry\akipng.png C:\Users\Daniel\Documents\BlackBerry\crackberry.java
C:\Users\Daniel\Documents\BlackBerry\crackberry.java:22: '{' expected
class WebLink() {
^
C:\Users\Daniel\Documents\BlackBerry\crackberry.java:24: expected
site.displayPage("http://www.akimotors.com/m");
^
C:\Users\Daniel\Documents\BlackBerry\crackberry.java:24: illegal start of type
site.displayPage("http://www.akimotors.com/m");
^
C:\Users\Daniel\Documents\BlackBerry\crackberry.java:25: expected
site.showBrowser();
^
C:\Users\Daniel\Documents\BlackBerry\crackberry.java:26: expected
System.exit(0);
^
C:\Users\Daniel\Documents\BlackBerry\crackberry.java:26: illegal start of type
System.exit(0);
^
6 errors
Error!: Error: java compiler failed: javac -source 1.3 -target 1.3 -g -O -d C:\Users\Daniel\AppData\Local\Temp\rapc_11ba4b3e.dir -bootcl ...
Error while building project

Best regards,

Daniel
Margarita Island, Venezuela

 
 
Posted by akhunteta Monday, Jul 04, 2011 219 days ago

Hi,

I am new in BB programming.

I use this code for making a launcher but it showing me an error.

The error is:
JVM error 104 Uncaught NullPointerException

Please help me

Thanks,