12-01-2009 09:56 AM
I'm making a BlackBerry app using JDE 4.6.0. Do I have to be using J2ME or can I use J2SE? I have J2SE installed on my machine.
I'm a radio streaming app. I'm using some code that the predecessor at my company used to create an earlier radio streaming app. I'm updating it.
I know for a fact that my predecessor was using J2ME, but I have J2SE installed on my machine. When I compile the app, it loads up in my BB device just fine, it's just that the buttons don't work. It could be because his code is just not completely functional. Could it also be because I'm building it with J2SE?
Could J2SE be the problem here?
12-01-2009 10:17 AM
do you use the JDE or eclipse+plugin to compile? The compiler should notify you of any non-compliant methods.
12-01-2009 10:17 AM
The most common development tools are the stand-alone Blackberry JDE, or Eclipse 3.4.x with the BlackBerry plug in.
There are other ways to get it done, but most folks use one or the other of these two.
12-01-2009 10:20 AM
when I type java -version into cmd, I get this:
Java SE Runtime Environment <build 1.6.0_17_b04>
Java HotSpot Client VM <build 14.3-b01, mixed mode, sharing>
I installed what I found here:
I downloaded the "JDK 6 Update 17" under the "Java SE Development Kit (JDK)" listing.
I got that one because this page:
12-01-2009 10:25 AM
and how do you compile your code? or create it?
12-01-2009 10:51 AM
Okay, the app is importing some ME headers.
12-01-2009 11:32 AM
you do not have to install j2me. The jde automatically uses the blackberry api, which includes j2me.
the jde itself runs in java and needs an installed j2se JRE.
whatever keeps your app from running, it seems not to be a j2se problem.
use try/catch a lot and use breakpoints in the simulator. be sure to make networking on a separate thread and use invokelater to do ui modifications from separate threads.
this should enable you to to find the error yourself.