问题
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:
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!
回答2:
Try clearing resources that have improper naming structure in your projects stuff with spaces or special character in the name of the file.
It took me two days to figure out.
回答3:
One solution i got regarding your problem. As I See Please run the application first time as Run as blackberry simulator that is got start and here pick up run and then Run as Blackberry simulator
来源:https://stackoverflow.com/questions/2518856/application-wont-start-or-load-in-blackberry-simulator