|
|
06-25-2008, 10:22 AM
|
#1
|
Thumbs Must Hurt
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
|
Unable to RUN any Applications on the Simulator
Please Login to Remove!
Hi
I have trying loading cod files on to the simulator , but it doesn't run
I copied the cod files to the simulator folder and tried again but still no luck
I tried some sample cod files that should have worked as they were Demo samples by RIM or by other coders
Can someone please say what is the problem ?
I have included the screen shot of the my Simulator's LCD Screen after loading those Cod files
|
Offline
|
|
06-27-2008, 06:26 AM
|
#2
|
Knows Where the Search Button Is
Join Date: Jun 2008
Model: 8310
PIN: N/A
Carrier: Vodafone
Posts: 26
|
Which development environment are u using?
In BlackBerry JDE 4.#, all u have to do is to click "Build" and then "Debug--> Go" to run the application on the defualt simulator; this automatically compiles the code to cod and loads it into the simulator.
You can download/install other simulators and then change the default simulator in JDE via "Edit --> Preferences --> Simulator".
|
Offline
|
|
06-27-2008, 08:01 AM
|
#3
|
Thumbs Must Hurt
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
|
Hi
I am using RIM JDE 4.3
( I also have a 3.6 version installed )
Every time I Simulate , I get the following error scren in BlackBerry
I tried changing it to use other Simulators that I have installed , but it is still always showing the same error
Aslo , there is the same problem when I directly load a cod file on to the simulators
That happens even when I load the sample cod files included by other developers or from RIM as a sample
Do you know what could be the problem ?
|
Offline
|
|
06-27-2008, 08:25 AM
|
#4
|
Talking BlackBerry Encyclopedia
Join Date: Jan 2008
Location: France
Model: 8310
PIN: N/A
Carrier: Vodafone
Posts: 217
|
Why to don't just load the java in the simulator???
But the step to launch it from the JDE.
You create a Worspace then you create a project in and add the file you need.
Check in the project properties if it's active.
Then juste press F5 and the JDE will compile all and launch the simulator with
|
Offline
|
|
06-27-2008, 10:35 AM
|
#5
|
Thumbs Must Hurt
Join Date: Apr 2006
Location: Boston
Model: 8900
Carrier: AT&T
Posts: 98
|
Hi!
The image you're seeing on the Simulator screen is what I see on a real device's screen when the OS is Not There. While I have some recollection of seeing that also on a Simulator (and was very surprised), I do not recall precisely what caused it. As a result, my guess is that something is missing from the "environment" when you're launching your simulator. This may be resolved as follows:
If the simulator was installed from a Simulator Install package:
1. Uninstall the simulator
2. Re-install the simulator
3. Launch the simulator from the Start menu (Start --> Programs --> Research In Motion --> [simulator])
4. After the simulator initializes, select "File" --> "Load Java Program" and navigate to your COD file. This should load the COD file
If the simulator was installed as part of the JDE installation:
1. Uninstall the JDE
2. Re-install the JDE
3. Launch the JDE
4. Open your workspace
5. Select "Build" --> "Clean All"
6. Select "Build" --> "Build All"
7. Select "Debug" --> "Go"
This should load your application's COD file.
Executing the application on the simulator should be pretty straightforward.
Both of the above procedures assume that something went wrong with the installation of the simulator (whether as part of the JDE install, or independently). One thing to check would be: immediately after re-installing, before trying to launch your application, try to run the simulator, just to see whether the simulator BY ITSELF can execute, without throwing added complexity into the issue.
Another thing to make certain of: if you're not using the JDE to launch the simulator AND you're not using the Start menu to launch the simulator, then please be certain that you're launching the simulator by double-clicking the .BAT file that's in the folder (in the simulators that came with my 4.3.0 JDE, there is a "8120.bat" and "8130.bat"). These files are editable scripts that launch the "fledge.exe" executable, that runs the simulation.
NOTE: Copying a COD and/or ALX file from the location where it was built INTO the simulator's directory is a BAD idea. I have gotten intermittently UNGOOD results from doing so. At the moment, I launch the simulator from the Start menu, and then do "Load Java Program" - this works consistently all the time.
Good luck!
Cheers,
karl
__________________
Karl G. Kowalski
---------------
Owns a RAZR
Develops for BlackBerry
So next phone will be........an iPhone 3G!
|
Offline
|
|
06-27-2008, 11:27 AM
|
#6
|
Thumbs Must Hurt
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
|
Hello Karl
That was a very explanative and comprehensive explanation
Thanks very much for your effort
I will be doing it as you have said
I have attached 2 of the Demos that I had been trying to simulate
Can someone else too run them and see if they cn be simulated properly ?
|
Offline
|
|
06-27-2008, 11:30 AM
|
#7
|
Thumbs Must Hurt
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
|
Here are those sample files
|
Offline
|
|
06-27-2008, 02:01 PM
|
#8
|
Thumbs Must Hurt
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
|
Hello Karl
I tried re installing the JDE as you had said
I launched the simulator on its own but it was still showing the same error 507
Any idea what could be so wrong ?
Please help me if you can
Quote:
Originally Posted by holy3daps
Hi!
The image you're seeing on the Simulator screen is what I see on a real device's screen when the OS is Not There. While I have some recollection of seeing that also on a Simulator (and was very surprised), I do not recall precisely what caused it. As a result, my guess is that something is missing from the "environment" when you're launching your simulator. This may be resolved as follows:
If the simulator was installed from a Simulator Install package:
1. Uninstall the simulator
2. Re-install the simulator
3. Launch the simulator from the Start menu (Start --> Programs --> Research In Motion --> [simulator])
4. After the simulator initializes, select "File" --> "Load Java Program" and navigate to your COD file. This should load the COD file
If the simulator was installed as part of the JDE installation:
1. Uninstall the JDE
2. Re-install the JDE
3. Launch the JDE
4. Open your workspace
5. Select "Build" --> "Clean All"
6. Select "Build" --> "Build All"
7. Select "Debug" --> "Go"
This should load your application's COD file.
Executing the application on the simulator should be pretty straightforward.
Both of the above procedures assume that something went wrong with the installation of the simulator (whether as part of the JDE install, or independently). One thing to check would be: immediately after re-installing, before trying to launch your application, try to run the simulator, just to see whether the simulator BY ITSELF can execute, without throwing added complexity into the issue.
Another thing to make certain of: if you're not using the JDE to launch the simulator AND you're not using the Start menu to launch the simulator, then please be certain that you're launching the simulator by double-clicking the .BAT file that's in the folder (in the simulators that came with my 4.3.0 JDE, there is a "8120.bat" and "8130.bat"). These files are editable scripts that launch the "fledge.exe" executable, that runs the simulation.
NOTE: Copying a COD and/or ALX file from the location where it was built INTO the simulator's directory is a BAD idea. I have gotten intermittently UNGOOD results from doing so. At the moment, I launch the simulator from the Start menu, and then do "Load Java Program" - this works consistently all the time.
Good luck!
Cheers,
karl
|
|
Offline
|
|
06-28-2008, 06:54 AM
|
#9
|
Thumbs Must Hurt
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
|
Hi Karl
Also I had installed JDE 4.3
The Simulators I downloaded were of version 4.0
|
Offline
|
|
06-28-2008, 09:15 AM
|
#10
|
Thumbs Must Hurt
Join Date: Apr 2006
Location: Boston
Model: 8900
Carrier: AT&T
Posts: 98
|
Upload
Hi!
I've tried running the HelloWorldDemo and the PhoneLogsDemo - they both seem to work fine, although I'm not precisely certain I've correctly loaded and executed them. Neither shows the error you're seeing on the "Device Simulator" I launched from Program Files --> Research In Motion --> BlackBerry JDE 4.3.0 --> Device Simulator.
So tell ya what I'm gonna do. I'm attaching a TestApp zip file, which contains everything to build and run a very very simple application. It was built using JDE 4.3.0, and it executes on the 4.3.0 JDE device simulator, a black 8130. I'm also in the middle of testing it against other simulators.
The environment settings on my machine (wrt Java stuff) are:
java.exe version: 1.6.0_05
javac.exe version: 1.6.0
That's about all I can think of at this point. Like I mentioned, this should just work. But hey, if everything in computer systems & software worked perfectly, I'd be out of a job!
Good luck!
Cheers,
karl
__________________
Karl G. Kowalski
---------------
Owns a RAZR
Develops for BlackBerry
So next phone will be........an iPhone 3G!
|
Offline
|
|
06-28-2008, 09:17 AM
|
#11
|
Thumbs Must Hurt
Join Date: Apr 2006
Location: Boston
Model: 8900
Carrier: AT&T
Posts: 98
|
PS: One more thing: you should build the TestApp application from scratch. Alas, I left the COD file as-built-on-my-machine in there, so do a "Clean All" and "Build All", just to make sure. Can't trust these things. And - don't take this the wrong way - it only gets more challenging!
kgk
__________________
Karl G. Kowalski
---------------
Owns a RAZR
Develops for BlackBerry
So next phone will be........an iPhone 3G!
|
Offline
|
|
06-28-2008, 09:25 AM
|
#12
|
Thumbs Must Hurt
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
|
Hello Karl
Thanks so much for your help
Do you think it would have to do something with JRE ?
I hadn't set the path to JRE , I had just set the path to J2SDK\bin
Do you know how I should specify the path to JRE ?
I will also be trying the applicstion that you have attached
Thank you so much for your help
|
Offline
|
|
06-28-2008, 09:51 AM
|
#13
|
Thumbs Must Hurt
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
|
Hello Karl
Also I am using J2SDK1.6 and J2RE1.6
The JDE is 4.3
|
Offline
|
|
06-30-2008, 02:17 PM
|
#14
|
Thumbs Must Hurt
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
|
Has anyone got any idea what could be the Problem?
I have installed and reinstalled JDE 4.3 many times
Also I removed earlier JDE 3.6
|
Offline
|
|
07-01-2008, 09:40 AM
|
#15
|
Thumbs Must Hurt
Join Date: Apr 2006
Location: Boston
Model: 8900
Carrier: AT&T
Posts: 98
|
Hi!
Sorry to take so long getting back. It sounds like your challenges are more complicated than my limited understanding/experience. Wish I could help.
The JDE will require access to the Java compiler - so you should make sure your JAVA_HOME environment variable is set correctly. The Java SDK comes with the same java.exe as the JRE does, so as long as JAVA_HOME points to J2SDK\bin it should provide all the correct Java tools for the JDE to make use of.
Beyond that, I don't have much I can add. Sorry, man.
Cheers,
Karl
__________________
Karl G. Kowalski
---------------
Owns a RAZR
Develops for BlackBerry
So next phone will be........an iPhone 3G!
|
Offline
|
|
07-01-2008, 09:47 AM
|
#16
|
Thumbs Must Hurt
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
|
Hi Karl
Thanks for your willingness to help
Do you think it has to do something like javaw ?
I stumbled across it at
http://www.blackberryforums.com/deve...-help-jde.html
Do you think I need to specify the path to javaw.exe too ?
|
Offline
|
|
07-01-2008, 09:57 AM
|
#17
|
Thumbs Must Hurt
Join Date: Apr 2006
Location: Boston
Model: 8900
Carrier: AT&T
Posts: 98
|
Hi!
It looks like the javaw.exe is in the bin folder along with javac.exe and java.exe; so if you're specifying the correct path to javac & java, then javaw is there too.
If the simulator is running at all, then the java executable (even javaw) is working correctly. You might try downloading a previous Java version - I've got several that I cycle through to find the proper one. Go back a version to 1.5 and see if that helps.
Cheers,
karl
__________________
Karl G. Kowalski
---------------
Owns a RAZR
Develops for BlackBerry
So next phone will be........an iPhone 3G!
|
Offline
|
|
07-01-2008, 11:17 AM
|
#18
|
Thumbs Must Hurt
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
|
Hi
I would be doing that
But can you please say whether in that case do I just need to edit the environment variable path to make it refer to Java 4 or so ?
Or do I need to re install the Simulator as well as the JDE ?
|
Offline
|
|
07-01-2008, 01:01 PM
|
#19
|
Thumbs Must Hurt
Join Date: Apr 2006
Location: Boston
Model: 8900
Carrier: AT&T
Posts: 98
|
You should be able to just modify the environment variable path; make sure that the path is actually in the PATH environment variable as well.
Cheers,
karl
__________________
Karl G. Kowalski
---------------
Owns a RAZR
Develops for BlackBerry
So next phone will be........an iPhone 3G!
|
Offline
|
|
07-04-2008, 06:23 AM
|
#20
|
Thumbs Must Hurt
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
|
Hi Karl
I am having 2 path settings under the tab
Does both off them need to be the same ?
When editing they seemed to be having different values so I just added the relevant Java path to both of them
Do I have to make sure that the rest of the values too are the same ?
Quote:
Originally Posted by holy3daps
You should be able to just modify the environment variable path; make sure that the path is actually in the PATH environment variable as well.
Cheers,
karl
|
|
Offline
|
|
|
|