Link to home
Start Free TrialLog in
Avatar of Glen Gibb
Glen GibbFlag for Canada

asked on

BlackBerry App builds in Eclipse, but no executable code nor icon

Experts,

I'm tearing my hair!

I have working BB code that builds on my supervisor's computer (Eclipse Juno, JRE version 4.7.0).  

Using the same JRE and Eclipse Indigo (the JDE from the BB site) I can build the project on my desktop box.

However, the installed app on either a simulator or my BB Curve 9360 is essentially empty.   The app icon does not appear, the build does not appear in "Apps" but rather in "Downloads" on the BB device and opening the download produces an empty page that reads, "My Title."

I've rebuilt my workspaces, installed different versions of Eclipse (Kepler and Indigo) but the result is still the same.

I'm tearing my hair.  Can you help?

Capt
Avatar of girionis
girionis
Flag of Greece image

However, the installed app on either a simulator or my BB Curve 9360 is essentially empty.   The app icon does not appear, the build does not appear in "Apps" but rather in "Downloads" on the BB device and opening the download produces an empty page that reads, "My Title."

Firtst, can you make sure that you are installing the right application?

And second, do you get any error messages?
Avatar of Glen Gibb

ASKER

Tnx for the reply.

1.  You do have a point about the right application.  I have checked out code from the repository and I believe I have the right project.  I have tried both importing the code to my BBWorkspace and creating a new BBProject from existing code.  The end result is the same.

2.  There are warning messages.  Most of them signal unused vars or empty functions, etc.  Some signal a RIM Runtime API (0x525525400) Protected Class xxx not being signed.
Not sure if they are critical.

The project did build correctly once and install (but not run) on a Curve 8830.  Now I have a Curve 9360 which receives the build but essentially displays a blank screen.  I did solve the missing icon problem by adding it to the manifest.  Somehow there's something missing, but I'm so new at BB projects, I'm not sure where to look.
Do you get any errors, anywhere, apart from te warning messages?
Fortunately, no.  The errors have been resolved, which mostly involved adding the appropriate libraries.
ASKER CERTIFIED SOLUTION
Avatar of girionis
girionis
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Tnx, girionis.

I suspected as much.  

I'm assuming by "build file" you mean the .xml manifest?

There was no icon in the build, so I added it in the manifest, which then appeared in the build.  

Now I just need to see where the output is going.  Is that always to a .cod?  Is there an .axl needed as well?

Capt
I am not sure which files it's using, if you have installed the eclipse plugin it should do it for you. How do you build the file? Manually or through some tool?
I build it through the BB project and run on a simulator.

I decided to get a bit more creative and download the BB Samples.  They all build just fine.  Thus, I'm concluding that my Eclipse configuration and configuration are correct and that the source lies at the heart of the matter.

I'm thinking the repository is missing something important.  I'll ask for the code from a successful build be re-entered there.  I believe you have the answer.  Points when I get to talk to my supervisor and get the "real" files.

Capt
You are spot on!  I was able to compare the project files with a working build.  

Somehow my project had a folder entitled, "MyApp" with a blank icon and directing the package to output an empty screen with, "MyTitle."

I deleted the folder, and woo-hoo!  It builds as expected.

Thanks for pointing me to the basics.