views:

692

answers:

1

Hello all

I'm developing an application on two different machines (home and work) and while the home one seems to run just fine, the work one is, for lack of a better word, possessed. It has been exhibiting the following issues:

  • When loading the application, it will start at the simulator's main screen instead of starting the application at random intervals. You can start the application and have it work fine, then close the simulator, reload, and have the same codebase not load.
  • Going to applications doesn't show the application itself, in fact it never does.
  • Trying to load the applications cod file (File->load java program) never works. Tried the steps in this thread, with unreliable results.
  • Extremely small changes, such as modifying the value of a width variable by one, commenting out a function such as makeMenu or adding a button will cause code to no longer work, with no errors shown by the IDE.
  • Using clear.bat with sometimes work, sometimes not. Same with manually removing all files with the name of the project.
  • reinstalling the eclipse environment and the blackberry plugin did nothing more then burn off an hour.
  • having "load on startup" in the blackberry_app_descriptor.xml file is set.

Both systems are using Eclipse 3.5.1, BB plugin for eclipse 1.1 beta, Java 4.5 with the 8300 simulator. THe only difference that I am seeing is the operating system between the two systems. The work one being XP Sp3, home being vista. THe vista one isn't perfect, but I can test variable changes without flipping a coin to see if the app will even load or not.

I've tried the solutions that were similar on this forum, such as this one, but it looked to be that those solutions are dated as none of the options for the steps existed in my eclipse install.

So has anyone ran into such baffling behavior, and can it be fixed? Anything that I might have missed that could be tried?

+1  A: 

I've been seeing this behavior with the new 1.1 plugin, the application doesn't load on startup and the FIle->load java program doesn't help. For me, the solution was I have to run a clean build every time, that is the eclipse clean and build instead of just build, not the clean.bat... Hope this helps!

Tamar
Sorry for my ignorance, but how would this be done, and would it need to be done before loading the application into the simulator, or just once on loading eclipse for the first time.
canadiancreed
If you go into Project -> Clean... Check the _Start a build immediately_ checkbox so it will also build after the clean and click ok. After it builds run the simulator. BTW, for me the application shows up under the downloads folder, not the applications folder, it depends on the setting in the app desscriptor.
Tamar
That seems to work, although before executing clean needs to be ran or else unpredictable behavior occurs. Is this similar to what you found? As for location it might be the simulator. I've found the newer ones will have the app in downloads instead of applications.
canadiancreed
Yes, I run _clean_ every time before I execute, but only if something changed in code, if the code did not change between simulator runs, there's no need to do a clean build. Some of my coworkers have seen this behavior as well with the 1.1 plugin: if a clean build is not preformed before execution, the program will not always load, and even an explicit load from the simulator will not help. I'm glad it worked! :)
Tamar
Yep. Just wish it would run clean when you hit execute for the application. Maybe for 1.2? :D
canadiancreed