Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
SoreThumbs
Posts: 7
Registered: ‎11-08-2008

Completely lost newb.

It was suggested I post a new thread so here it is.

 

This is my first attempt at programming in Java, let alone for the BB platform. I'm just really confused at all the required software needed to do this. Every where I look, it's install these 3 packages, download these 2 other things, on and on. I mean really, look at any of the "getting started" pages, there's tons of stuff to download. Is there something, somewhere that just says:

Install this first, Install this second, install this third. SPECIFICALLY.

Here's the list of all the things I have downloaded so far:

 

java_ee_sdk-5_08-jdk-6u17-windows
eJDE-4_7_0_46_Component
eJDE1.0.0.67_With_CP4.5.0.16
eclipse-jee-galileo-SR1-win32
BlackBerry_Simulators_5.0.0.337_8530-Verizon
BlackBerry_JDE_PluginFull_1.0.0.67
BlackBerry_JDE_4.7.0

 

I've never seen so many things needed to be installed just to try and program in one environment!

 

Is there anything out there that lists specifically what needs to be installed and in what order? I read some of the guides and watched some of the videos and they were still kinda vague.

 

Or is this the entrance test??? "If you can't figure out how to install and config the environement, you have no biz trying to program this." Thanks in advance.

Please use plain text.
Developer
Andiamo
Posts: 39
Registered: ‎05-26-2009

Re: Completely lost newb.

[ Edited ]

Ehh, yeah, I know what you're talking about. It was not fun the first time I was setting up my BB development environment. In fact it really did feel like an entrance test lol.

 

Basically, this is the list of stuff you need, and in what order. If something doesn't work right, I apologize, it's been a long time since I last set all of this up and as you can imagine I haven't been keen to do it again.

 

Java JDK1.6

http://java.sun.com/javase/downloads/widget/jdk6.jsp

Install this before doing anything else.

 

Eclipse IDE for Java Developers (ver 3.5, Galileo)

http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/SR1/ecl...

Extract this into a safe folder, Eclipse doesn't come with an installer so wherever you extract it is where it'll live.

 

BlackBerry JDE Plugin for Eclipse

http://na.blackberry.com/eng/developers/javaappdev/eclipseplug_updatesite.jsp

Follow these instructions and bypass the installer RIM provides. Remember to select one or more component packs based upon whatever OS versions you want to deploy on. For example if you want to build Storm apps select the 4.7 component pack. This will also get you started with some 4.7 simulators.

 

Once all of that's done, you'll need to do some configuration to set up Eclipse. This is the part where my memory is really spotty.

 

First, make sure the right component pack is set. From the Eclipse menu toolbar: BlackBerry >> Configure BlackBerry Workspace >> Installed Components >> Select from the dropdown.

 

Then you should create a new Run Configuration so you can test your apps in the simulator. From the Eclipse menu toolbar: Run >> Run Configurations >> BlackBerry Simulator >> Click the 'New' icon >> Name it whatever you want >> Select the Simulator tab and from the Profile dropdown, select the model number of the BlackBerry you want to test on.

 

After that I BELIEVE you are ready to start coding. From the Eclipse menu toolbar: File >> New >> Project (NOT Java Project) >> BlackBerry Project. After you create your project you can finally start setting up your entry point for the app and begin coding for real.

 

I'm sure I've missed something but give it a shot and see what happens.

Please use plain text.
Developer
peter_strange
Posts: 19,512
Registered: ‎07-14-2008

Re: Completely lost newb.

I agree with Andiamo, it feels like a test and once done, you don't want to do it again as you might have forgotten one small step and it never works.

 

RIM have thrown a curve ball too with the introduction of the Beta 1.1 plug-in which I understand has different requirements in terms of the base Eclipse platform.

 

In summary, you have two choices:

 

a) Develop using Eclipse.  In that case you need the correct level of Java (from Sun), of Eclipse (from Eclipse), the plug-in (from RIM) and the component packs (from RIM) for the levels of OS you wish to develop for (Just to clear to confusion up right now, Blackberry releases are forwards but not backwards compatible, so if you develop for 3.6 (which cam in with the 9000 Bold), you can't expect that code t run on 4.2.2, which was the OS that came with the first 8300 Curves).

 

b) To develop using the JDE, you need the correct level of Java (from Sun), and the JDE versions for the OS you wish to develop for.

 

Andiamo has described the Eclipse installation, the JDE installation is simpler, but most people seem to think the Eclipse environment is better.  You can have both JDE and Eclipse installed, no problem.  But you might have to some phutzing around with Java libraries, I seem to remember having to do something so that the older JDE's uses an older Java - it was in a KB article.

 

Sorry I can't find what I would call an up-to-date and complete installation document.  I think that RIM expect that people who are developing for Blackberry devices already know Java, have it installed and know how to play round with its libraries. 

Please use plain text.
Developer
mantaker
Posts: 1,477
Registered: ‎12-30-2008

Re: Completely lost newb.


peter_strange wrote:

Blackberry releases are forwards but not backwards compatible, so if you develop for 3.6 (which cam in with the 9000 Bold), you can't expect that code t run on 4.2.2, which was the OS that came with the first 8300 Curves). 


 

I'm sure peter did not really mean 3.6.. It is 4.6 and you cannot expect it to run in 4.2 or 4.3!
Cheers,

 

 

--
Manimaran Selvan
Co-Founder, Tech Lead,
Equity Markets Research Group
Please use plain text.
Developer
nirmalsat
Posts: 207
Registered: ‎07-31-2009

Re: Completely lost newb.

If its of any help , i used the following guide to set mine up. Check it out...

 

http://www.blackberryforums.com/developer-forum/138210-setup-up-eclipse-blackberry-development.html

------------------------------------------------------------------------------------------------------------------------
Click the Kudos! badge on left side of the message , if you are happy with a solution given by a user. When you do so, you are saying thanks to its author.
Mark a reply as a solution , if you think your question has been answered.
To mark a message as a solution: Click "Accept as solution" icon on the reply.
Please use plain text.